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 int
available()
protected void
checkAndReadAESMacBytes()
void
close()
UnzipEngine
getUnzipEngine()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
void
seek(long pos)
long
skip(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:
available
in classBaseInputStream
-
read
public int read() throws IOException
- Overrides:
read
in classBaseInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
checkAndReadAESMacBytes
protected void checkAndReadAESMacBytes() throws IOException
- Throws:
IOException
-
skip
public long skip(long amount) throws IOException
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
seek
public void seek(long pos) throws IOException
- Overrides:
seek
in classBaseInputStream
- Throws:
IOException
-
getUnzipEngine
public UnzipEngine getUnzipEngine()
- Overrides:
getUnzipEngine
in classBaseInputStream
-
-