public class LZ4BlockInputStream
extends java.io.FilterInputStream
InputStream
implementation to decode data written with
LZ4BlockOutputStream
. This class is not thread-safe and does not
support mark(int)
/reset()
.LZ4BlockOutputStream
Constructor and Description |
---|
LZ4BlockInputStream(java.io.InputStream in)
Creates a new LZ4 input stream to read from the specified underlying InputStream, using
XXHash32 for checksuming. |
LZ4BlockInputStream(java.io.InputStream in,
boolean stopOnEmptyBlock)
Creates a new LZ4 input stream to read from the specified underlying InputStream, using
XXHash32 for checksuming. |
LZ4BlockInputStream(java.io.InputStream in,
LZ4FastDecompressor decompressor)
Creates a new LZ4 input stream to read from the specified underlying InputStream, using
XXHash32 for checksuming. |
LZ4BlockInputStream(java.io.InputStream in,
LZ4FastDecompressor decompressor,
java.util.zip.Checksum checksum)
Creates a new LZ4 input stream to read from the specified underlying InputStream.
|
LZ4BlockInputStream(java.io.InputStream in,
LZ4FastDecompressor decompressor,
java.util.zip.Checksum checksum,
boolean stopOnEmptyBlock)
Creates a new LZ4 input stream to read from the specified underlying 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) |
java.lang.String |
toString() |
public LZ4BlockInputStream(java.io.InputStream in, LZ4FastDecompressor decompressor, java.util.zip.Checksum checksum, boolean stopOnEmptyBlock)
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 streamstopOnEmptyBlock
- whether read is stopped on an empty blockpublic LZ4BlockInputStream(java.io.InputStream in, LZ4FastDecompressor decompressor, java.util.zip.Checksum checksum)
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 streamLZ4BlockInputStream(InputStream, LZ4FastDecompressor, Checksum, boolean)
public LZ4BlockInputStream(java.io.InputStream in, LZ4FastDecompressor decompressor)
XXHash32
for checksuming.in
- the InputStream
to polldecompressor
- the decompressor
instance to
useLZ4BlockInputStream(InputStream, LZ4FastDecompressor, Checksum, boolean)
,
StreamingXXHash32.asChecksum()
public LZ4BlockInputStream(java.io.InputStream in, boolean stopOnEmptyBlock)
XXHash32
for checksuming.in
- the InputStream
to pollstopOnEmptyBlock
- whether read is stopped on an empty blockLZ4BlockInputStream(InputStream, LZ4FastDecompressor, Checksum, boolean)
,
LZ4Factory.fastestInstance()
,
StreamingXXHash32.asChecksum()
public LZ4BlockInputStream(java.io.InputStream in)
XXHash32
for checksuming.in
- the InputStream
to pollLZ4BlockInputStream(InputStream, LZ4FastDecompressor)
,
LZ4Factory.fastestInstance()
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public void mark(int readlimit)
mark
in class java.io.FilterInputStream
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object