org.nuxeo.ecm.core.io.impl
Class AbstractDocumentReader
java.lang.Object
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
AbstractDocumentReader
public AbstractDocumentReader()
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.