Class ZipReader
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
org.nuxeo.ecm.core.io.impl.plugins.ZipReader
- All Implemented Interfaces:
DocumentReader
A reader to read zip files. If the zip file is recognized as a nuxeo archive then the
NuxeoArchiveReader
will
be used to read the zip otherwise the zip will be deflated to a temporary directory and then
XMLDirectoryReader
will be used to read the zip.- Author:
- Bogdan Stefanescu
-
Constructor Summary
-
Method Summary
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
read
-
Constructor Details
-
ZipReader
- Throws:
IOException
-
ZipReader
- Throws:
IOException
-
-
Method Details
-
read
Description copied from interface:DocumentReader
Reads a single document.- Specified by:
read
in interfaceDocumentReader
- Specified by:
read
in 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:DocumentReader
Closes the reader.
-