Class SingleDocumentReader
- 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.SingleDocumentReader
-
- All Implemented Interfaces:
DocumentReader
- Direct Known Subclasses:
TypedSingleDocumentReader
public class SingleDocumentReader extends DocumentModelReader
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModel
doc
protected boolean
enableRepeatedReads
protected boolean
readDone
-
Fields inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
inlineBlobs, session
-
-
Constructor Summary
Constructors Constructor Description SingleDocumentReader(CoreSession session, DocumentModel root)
SingleDocumentReader(CoreSession session, DocumentRef root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the reader.ExportedDocument
read()
Reads a single document.void
setEnableRepeatedReads(boolean enableRepeatedReads)
-
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 Detail
-
doc
protected DocumentModel doc
-
enableRepeatedReads
protected boolean enableRepeatedReads
-
readDone
protected boolean readDone
-
-
Constructor Detail
-
SingleDocumentReader
public SingleDocumentReader(CoreSession session, DocumentModel root)
-
SingleDocumentReader
public SingleDocumentReader(CoreSession session, DocumentRef root)
-
-
Method Detail
-
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
-
setEnableRepeatedReads
public void setEnableRepeatedReads(boolean enableRepeatedReads)
-
-