Package org.nuxeo.ecm.core.io.impl
Class AbstractDocumentReader
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
- All Implemented Interfaces:
DocumentReader
- Direct Known Subclasses:
DocumentModelReader
,NuxeoArchiveReader
,XMLDirectoryReader
,XMLZipReader
,ZipReader
- Author:
- Bogdan Stefanescu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ExportedDocument
read()
Reads a single document.read
(int count) Reads next 'count' documents.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.io.DocumentReader
close
-
Constructor Details
-
AbstractDocumentReader
public AbstractDocumentReader()
-
-
Method Details
-
read
Description copied from interface:DocumentReader
Reads a single document.- Specified by:
read
in interfaceDocumentReader
- Returns:
- the document read or null if there are no more documents to read
- Throws:
IOException
-
read
Description copied from interface:DocumentReader
Reads next 'count' documents.- Specified by:
read
in interfaceDocumentReader
- 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
-