public class DeflateCompressorInputStream extends CompressorInputStream
| Constructor and Description |
|---|
DeflateCompressorInputStream(InputStream inputStream)
Creates a new input stream that decompresses Deflate-compressed data
from the specified input stream.
|
DeflateCompressorInputStream(InputStream inputStream,
DeflateParameters parameters)
Creates a new input stream that decompresses Deflate-compressed data
from the specified input stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
static boolean |
matches(byte[] signature,
int length)
Checks if the signature matches what is expected for a zlib / deflated file
with the zlib header.
|
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
long |
skip(long n) |
count, count, getBytesRead, getCount, pushedBackBytesmark, markSupported, read, resetpublic DeflateCompressorInputStream(InputStream inputStream)
inputStream - where to read the compressed datapublic DeflateCompressorInputStream(InputStream inputStream, DeflateParameters parameters)
inputStream - where to read the compressed dataparameters - parameterspublic int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf, int off, int len) throws IOException
read in class InputStreamIOExceptionpublic long skip(long n) throws IOException
skip in class InputStreamIOExceptionpublic int available() throws IOException
available in class InputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic static boolean matches(byte[] signature, int length)
signature - the bytes to checklength - the number of bytes to checkCopyright © 2016 The Apache Software Foundation. All rights reserved.