org.nuxeo.ecm.core.io.impl.plugins
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
DocumentsListReader
public DocumentsListReader(CoreSession session,
List<DocumentModel> docsList)
createDocumentsListReader
public static DocumentsListReader createDocumentsListReader(CoreSession session,
Collection<DocumentRef> docRefsList)
throws ClientException
- Throws:
ClientException
close
public void close()
- Description copied from interface:
DocumentReader
- Closes the reader.
- Specified by:
close
in interface DocumentReader
- Overrides:
close
in class DocumentModelReader
read
public ExportedDocument read()
throws IOException
- Description copied from interface:
DocumentReader
- Reads a single document.
- Specified by:
read
in interface DocumentReader
- Specified by:
read
in class DocumentModelReader
- Returns:
- the document read or null if there are no more documents to read
- Throws:
IOException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.