Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.io.impl.plugins
Class SingleDocumentReader

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
      extended by org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
          extended by org.nuxeo.ecm.core.io.impl.plugins.SingleDocumentReader
All Implemented Interfaces:
DocumentReader

public class SingleDocumentReader
extends DocumentModelReader

Author:
Bogdan Stefanescu

Constructor Summary
SingleDocumentReader(CoreSession session, DocumentModel root)
           
SingleDocumentReader(CoreSession session, DocumentRef root)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleDocumentReader

public SingleDocumentReader(CoreSession session,
                            DocumentModel root)

SingleDocumentReader

public SingleDocumentReader(CoreSession session,
                            DocumentRef root)
                     throws ClientException
Throws:
ClientException
Method Detail

close

public void close()
Description copied from interface: DocumentReader
Closes the reader.

Specified by:
close in interface DocumentReader
Overrides:
close in class DocumentModelReader

read

public ExportedDocument read()
                      throws IOException
Description copied from interface: DocumentReader
Reads a single document.

Specified by:
read in interface DocumentReader
Specified by:
read in class DocumentModelReader
Returns:
the document read or null if there are no more documents to read
Throws:
IOException

setEnableRepeatedReads

public void setEnableRepeatedReads(boolean enableRepeatedReads)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.