Class DocumentModelReader
- java.lang.Object
-
- org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
-
- org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
-
- All Implemented Interfaces:
DocumentReader
- Direct Known Subclasses:
DocumentsListReader
,DocumentTreeReader
,ExtensibleDocumentTreeReader
,SingleDocumentReader
public abstract class DocumentModelReader extends AbstractDocumentReader
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
inlineBlobs
protected CoreSession
session
-
Constructor Summary
Constructors Modifier Constructor Description protected
DocumentModelReader(CoreSession session)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the reader.boolean
getInlineBlobs()
abstract ExportedDocument
read()
Reads a single document.void
setInlineBlobs(boolean inlineBlobs)
-
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
read
-
-
-
-
Field Detail
-
session
protected CoreSession session
-
inlineBlobs
protected boolean inlineBlobs
-
-
Constructor Detail
-
DocumentModelReader
protected DocumentModelReader(CoreSession session)
-
-
Method Detail
-
read
public abstract ExportedDocument read() throws IOException
Description copied from interface:DocumentReader
Reads a single document.- Specified by:
read
in interfaceDocumentReader
- Specified by:
read
in classAbstractDocumentReader
- Returns:
- the document read or null if there are no more documents to read
- Throws:
IOException
-
close
public void close()
Description copied from interface:DocumentReader
Closes the reader.
-
setInlineBlobs
public void setInlineBlobs(boolean inlineBlobs)
- Parameters:
inlineBlobs
- the inlineBlobs to set.
-
getInlineBlobs
public boolean getInlineBlobs()
-
-