Class ZipReader
- java.lang.Object
-
- org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
-
- org.nuxeo.ecm.core.io.impl.plugins.ZipReader
-
- All Implemented Interfaces:
DocumentReader
public class ZipReader extends AbstractDocumentReader
A reader to read zip files. If the zip file is recognized as a nuxeo archive then theNuxeoArchiveReaderwill be used to read the zip otherwise the zip will be deflated to a temporary directory and thenXMLDirectoryReaderwill be used to read the zip.- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description ZipReader(File file)ZipReader(InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the reader.ExportedDocumentread()Reads a single document.-
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
read
-
-
-
-
Constructor Detail
-
ZipReader
public ZipReader(File file) throws IOException
- Throws:
IOException
-
ZipReader
public ZipReader(InputStream in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public ExportedDocument read() throws IOException
Description copied from interface:DocumentReaderReads a single document.- Specified by:
readin interfaceDocumentReader- Specified by:
readin classAbstractDocumentReader- Returns:
- the document read or null if there are no more documents to read
- Throws:
IOException
-
close
public void close()
Description copied from interface:DocumentReaderCloses the reader.
-
-