Class DocumentTreeReader
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.DocumentTreeReader
- All Implemented Interfaces:
DocumentReader
- Author:
- Bogdan Stefanescu
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
inlineBlobs, session
-
Constructor Summary
ConstructorDescriptionDocumentTreeReader
(CoreSession session, DocumentModel root) DocumentTreeReader
(CoreSession session, DocumentModel root, boolean excludeRoot) DocumentTreeReader
(CoreSession session, DocumentRef root) -
Method Summary
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
-
Field Details
-
iterator
-
pathSegmentsToRemove
protected int pathSegmentsToRemove
-
-
Constructor Details
-
DocumentTreeReader
-
DocumentTreeReader
-
DocumentTreeReader
-
-
Method Details
-
close
public void close()Description copied from interface:DocumentReader
Closes the reader.- Specified by:
close
in interfaceDocumentReader
- Overrides:
close
in classDocumentModelReader
-
read
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
-