public class SingleDocumentReader extends DocumentModelReader
| Modifier and Type | Field and Description |
|---|---|
protected DocumentModel |
doc |
protected boolean |
enableRepeatedReads |
protected boolean |
readDone |
inlineBlobs, session| Constructor and Description |
|---|
SingleDocumentReader(CoreSession session,
DocumentModel root) |
SingleDocumentReader(CoreSession session,
DocumentRef root) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader.
|
ExportedDocument |
read()
Reads a single document.
|
void |
setEnableRepeatedReads(boolean enableRepeatedReads) |
getInlineBlobs, setInlineBlobsreadprotected DocumentModel doc
protected boolean enableRepeatedReads
protected boolean readDone
public SingleDocumentReader(CoreSession session, DocumentModel root)
public SingleDocumentReader(CoreSession session, DocumentRef root)
public void close()
DocumentReaderclose in interface DocumentReaderclose in class DocumentModelReaderpublic ExportedDocument read() throws IOException
DocumentReaderread in interface DocumentReaderread in class DocumentModelReaderIOExceptionpublic void setEnableRepeatedReads(boolean enableRepeatedReads)
Copyright © 2019 Nuxeo. All rights reserved.