public class InflaterInputStream extends PartInputStream
Constructor and Description |
---|
InflaterInputStream(RandomAccessFile raf,
long start,
long len,
UnzipEngine unzipEngine) |
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns 0 after EOF has been reached, otherwise always return 1.
|
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 n)
Skips specified number of bytes of uncompressed data.
|
checkAndReadAESMacBytes
mark, markSupported, reset
public InflaterInputStream(RandomAccessFile raf, long start, long len, UnzipEngine unzipEngine)
public int read() throws IOException
read
in class PartInputStream
IOException
public int read(byte[] b) throws IOException
read
in class PartInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class PartInputStream
IOException
public long skip(long n) throws IOException
skip
in class PartInputStream
n
- the number of bytes to skipIOException
- if an I/O error has occurredIllegalArgumentException
- if n < 0public void seek(long pos) throws IOException
seek
in class PartInputStream
IOException
public int available()
Programs should not count on this method to return the actual number of bytes that could be read without blocking.
available
in class PartInputStream
IOException
- if an I/O error occurs.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class PartInputStream
IOException
public UnzipEngine getUnzipEngine()
getUnzipEngine
in class PartInputStream
Copyright © 2013. All rights reserved.