Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.io.impl
Class AbstractDocumentReader

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
All Implemented Interfaces:
DocumentReader
Direct Known Subclasses:
DocumentModelListReader, DocumentModelReader, NuxeoArchiveReader, SingleXMlDocumentReader, XMLDirectoryReader, XMLZipReader, ZipReader

public abstract class AbstractDocumentReader
extends Object
implements DocumentReader

Author:
Bogdan Stefanescu

Constructor Summary
AbstractDocumentReader()
           
 
Method Summary
abstract  ExportedDocument read()
          Reads a single document.
 ExportedDocument[] read(int count)
          Reads next 'count' documents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.core.io.DocumentReader
close
 

Constructor Detail

AbstractDocumentReader

public AbstractDocumentReader()
Method Detail

read

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

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

read

public ExportedDocument[] read(int count)
                        throws IOException
Description copied from interface: DocumentReader
Reads next 'count' documents.

Specified by:
read in interface DocumentReader
Parameters:
count - the number of documents to read
Returns:
the array of read documents or null if there are no more documents to read
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.