Class DocumentsListReader
- java.lang.Object
-
- org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
-
- org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
-
- org.nuxeo.ecm.core.io.impl.plugins.DocumentsListReader
-
- All Implemented Interfaces:
DocumentReader
public class DocumentsListReader extends DocumentModelReader
Reader for a simple list of DocumentModel objects.- Author:
- DM
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
inlineBlobs, session
-
-
Constructor Summary
Constructors Constructor Description DocumentsListReader(CoreSession session, List<DocumentModel> docsList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the reader.static DocumentsListReader
createDocumentsListReader(CoreSession session, Collection<DocumentRef> docRefsList)
ExportedDocument
read()
Reads a single document.-
Methods inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
getInlineBlobs, setInlineBlobs
-
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
read
-
-
-
-
Constructor Detail
-
DocumentsListReader
public DocumentsListReader(CoreSession session, List<DocumentModel> docsList)
-
-
Method Detail
-
createDocumentsListReader
public static DocumentsListReader createDocumentsListReader(CoreSession session, Collection<DocumentRef> docRefsList)
-
close
public void close()
Description copied from interface:DocumentReader
Closes the reader.- Specified by:
close
in interfaceDocumentReader
- Overrides:
close
in classDocumentModelReader
-
read
public ExportedDocument read() throws IOException
Description copied from interface:DocumentReader
Reads a single document.- Specified by:
read
in interfaceDocumentReader
- Specified by:
read
in classDocumentModelReader
- Returns:
- the document read or null if there are no more documents to read
- Throws:
IOException
-
-