Interface DocumentReader

All Known Implementing Classes:
AbstractDocumentReader, DocumentModelReader, DocumentsListReader, DocumentTreeReader, ExtensibleDocumentTreeReader, NuxeoArchiveReader, SingleDocumentReader, TypedSingleDocumentReader, XMLDirectoryReader, XMLZipReader, ZipReader

public interface DocumentReader
A document reader. This reader is designed to be accessed remotely (over a network).
Author:
Bogdan Stefanescu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the reader.
    Reads a single document.
    read(int count)
    Reads next 'count' documents.
  • Method Details

    • read

      Reads a single document.
      Returns:
      the document read or null if there are no more documents to read
      Throws:
      IOException
    • read

      ExportedDocument[] read(int count) throws IOException
      Reads next 'count' documents.
      Parameters:
      count - the number of documents to read
      Returns:
      the array of read documents or null if there are no more documents to read
      Throws:
      IOException
    • close

      void close()
      Closes the reader.