Package com.marklogic.mapreduce
Class ZipEntryInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.marklogic.mapreduce.ZipEntryInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
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
Fields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
-
Constructor Summary
Constructors Constructor Description ZipEntryInputStream(ZipInputStream zipIn, String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcloseZipInputStream()booleanhasNext()intread()intread(byte[] buf)intread(byte[] b, int off, int len)-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
ZipEntryInputStream
public ZipEntryInputStream(ZipInputStream zipIn, String fileName)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] buf) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
closeZipInputStream
public void closeZipInputStream() throws IOException- Throws:
IOException
-
-