Nuxeo Enterprise Platform 5.4

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 java.lang.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 java.io.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:
java.io.IOException

read

public ExportedDocument[] read(int count)
                        throws java.io.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:
java.io.IOException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.