org.nuxeo.ecm.core.io.impl.plugins
Class NuxeoArchiveReader
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
org.nuxeo.ecm.core.io.impl.plugins.NuxeoArchiveReader
- All Implemented Interfaces:
- DocumentReader
public class NuxeoArchiveReader
- extends AbstractDocumentReader
Reads nuxeo archives generated using NuxeoArchiveWriter
.
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NuxeoArchiveReader
public NuxeoArchiveReader(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
NuxeoArchiveReader
public NuxeoArchiveReader(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
NuxeoArchiveReader
public NuxeoArchiveReader(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
NuxeoArchiveReader
public NuxeoArchiveReader(java.util.zip.ZipInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
read
public ExportedDocument read()
throws java.io.IOException
- Description copied from interface:
DocumentReader
- Reads a single document.
- Specified by:
read
in interface DocumentReader
- Specified by:
read
in class AbstractDocumentReader
- Returns:
- the document read or null if there are no more documents to read
- Throws:
java.io.IOException
close
public void close()
- Description copied from interface:
DocumentReader
- Closes the reader.
isMarkerEntry
public static boolean isMarkerEntry(java.util.zip.ZipEntry entry)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.