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, setInlineBlobs
read
protected DocumentModel doc
protected boolean enableRepeatedReads
protected boolean readDone
public SingleDocumentReader(CoreSession session, DocumentModel root)
public SingleDocumentReader(CoreSession session, DocumentRef root)
public void close()
DocumentReader
close
in interface DocumentReader
close
in class DocumentModelReader
public ExportedDocument read() throws IOException
DocumentReader
read
in interface DocumentReader
read
in class DocumentModelReader
IOException
public void setEnableRepeatedReads(boolean enableRepeatedReads)
Copyright © 2018 Nuxeo. All rights reserved.