Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.io
Interface DocumentReader

All Known Implementing Classes:
AbstractDocumentReader, DocumentChildrenReader, DocumentModelListReader, DocumentModelReader, DocumentsListReader, DocumentTreeReader, NuxeoArchiveReader, SingleDocumentReader, SingleDocumentReaderWithInLineBlobs, SingleXMlDocumentReader, 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
 void close()
          Closes the reader.
 ExportedDocument read()
          Reads a single document.
 ExportedDocument[] read(int count)
          Reads next 'count' documents.
 

Method Detail

read

ExportedDocument read()
                      throws IOException
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.


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.