com.marklogic.mapreduce
Class ZipEntryInputStream
java.lang.Object
java.io.InputStream
com.marklogic.mapreduce.ZipEntryInputStream
- All Implemented Interfaces:
- Closeable
public class ZipEntryInputStream
- extends InputStream
ZipEntryInputStream is a wrapper class of ZipInputStream to interface with
XCC so that the zip entries can be read sequentially.
|
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
ZipEntryInputStream
public ZipEntryInputStream(ZipInputStream zipIn,
String fileName)
hasNext
public boolean hasNext()
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] buf)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
close
public void close()
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
closeZipInputStream
public void closeZipInputStream()
throws IOException
- Throws:
IOException
Copyright © 2013 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com