Package net.lingala.zip4j.io
Class PartInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.lingala.zip4j.io.BaseInputStream
-
- net.lingala.zip4j.io.PartInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
InflaterInputStream
public class PartInputStream extends BaseInputStream
-
-
Constructor Summary
Constructors Constructor Description PartInputStream(RandomAccessFile raf, long start, long len, UnzipEngine unzipEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()protected voidcheckAndReadAESMacBytes()voidclose()UnzipEnginegetUnzipEngine()intread()intread(byte[] b)intread(byte[] b, int off, int len)voidseek(long pos)longskip(long amount)-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Constructor Detail
-
PartInputStream
public PartInputStream(RandomAccessFile raf, long start, long len, UnzipEngine unzipEngine)
-
-
Method Detail
-
available
public int available()
- Overrides:
availablein classBaseInputStream
-
read
public int read() throws IOException- Overrides:
readin classBaseInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
checkAndReadAESMacBytes
protected void checkAndReadAESMacBytes() throws IOException- Throws:
IOException
-
skip
public long skip(long amount) throws IOException- Overrides:
skipin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
seek
public void seek(long pos) throws IOException- Overrides:
seekin classBaseInputStream- Throws:
IOException
-
getUnzipEngine
public UnzipEngine getUnzipEngine()
- Overrides:
getUnzipEnginein classBaseInputStream
-
-