Class XMLZipReader
- java.lang.Object
-
- org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
-
- org.nuxeo.ecm.core.io.impl.plugins.XMLZipReader
-
- All Implemented Interfaces:
DocumentReader
public class XMLZipReader extends AbstractDocumentReader
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description XMLZipReader(File source)
XMLZipReader(String source)
XMLZipReader(ZipFile zip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the reader.ExportedDocument
read()
Reads a single document.org.dom4j.Document
readXML(InputStream in)
-
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
read
-
-
-
-
Constructor Detail
-
XMLZipReader
public XMLZipReader(ZipFile zip)
-
XMLZipReader
public XMLZipReader(String source) throws IOException
- Throws:
IOException
-
XMLZipReader
public XMLZipReader(File source) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public ExportedDocument read() throws IOException
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.
-
readXML
public org.dom4j.Document readXML(InputStream in)
-
-