public final class LZ4BlockInputStream extends FilterInputStream
InputStream implementation to decode data written with
LZ4BlockOutputStream. This class is not thread-safe and does not
support mark(int)/reset().LZ4BlockOutputStreamin| Constructor and Description |
|---|
LZ4BlockInputStream(InputStream in)
Create a new instance which uses the fastest
LZ4FastDecompressor available. |
LZ4BlockInputStream(InputStream in,
LZ4FastDecompressor decompressor)
Create a new instance using
XXHash32 for checksuming. |
LZ4BlockInputStream(InputStream in,
LZ4FastDecompressor decompressor,
Checksum checksum)
Create a new
InputStream. |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
closepublic LZ4BlockInputStream(InputStream in, LZ4FastDecompressor decompressor, Checksum checksum)
InputStream.in - the InputStream to polldecompressor - the decompressor instance to
usechecksum - the Checksum instance to use, must be
equivalent to the instance which has been used to
write the streampublic LZ4BlockInputStream(InputStream in, LZ4FastDecompressor decompressor)
XXHash32 for checksuming.public LZ4BlockInputStream(InputStream in)
LZ4FastDecompressor available.public int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic void mark(int readlimit)
mark in class FilterInputStreampublic void reset()
throws IOException
reset in class FilterInputStreamIOException