public static class StrictJarFile.ZipInflaterInputStream extends InflaterInputStream
buf, closed, inf, len
in
Constructor and Description |
---|
ZipInflaterInputStream(InputStream is,
Inflater inf,
int bsize,
ZipEntry entry) |
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns 0 after EOF has been reached, otherwise always return 1.
|
int |
read(byte[] buffer,
int byteOffset,
int byteCount)
Reads uncompressed data into an array of bytes.
|
close, fill, mark, markSupported, read, reset, skip
read
public ZipInflaterInputStream(InputStream is, Inflater inf, int bsize, ZipEntry entry)
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException
InflaterInputStream
len
is not
zero, the method will block until some input can be decompressed; otherwise,
no bytes are read and 0
is returned.read
in class InflaterInputStream
buffer
- the buffer into which the data is readbyteOffset
- the start offset in the destination array b
byteCount
- the maximum number of bytes readZipException
- if a ZIP format error has occurredIOException
- if an I/O error has occurredFilterInputStream.in
public int available() throws IOException
InflaterInputStream
Programs should not count on this method to return the actual number of bytes that could be read without blocking.
available
in class InflaterInputStream
IOException
- if an I/O error occurs.