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
public abstract class AbstractDocumentReader extends Object implements DocumentReader
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description AbstractDocumentReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ExportedDocument
read()
Reads a single document.ExportedDocument[]
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
-
-
-
-
Method Detail
-
read
public abstract ExportedDocument read() throws IOException
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
public ExportedDocument[] read(int count) throws IOException
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
-
-