public class LZ4FrameInputStream extends FilterInputStream
Not Supported:
Originally based on kafka's KafkaLZ4BlockInputStream.
in
Constructor and Description |
---|
LZ4FrameInputStream(InputStream in)
Creates a new
InputStream that will decompress data using fastest instances of LZ4SafeDecompressor and XXHash32 . |
LZ4FrameInputStream(InputStream in,
LZ4SafeDecompressor decompressor,
XXHash32 checksum)
Creates a new
InputStream that will decompress data using the LZ4 algorithm. |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
read
public LZ4FrameInputStream(InputStream in) throws IOException
InputStream
that will decompress data using fastest instances of LZ4SafeDecompressor
and XXHash32
.in
- the stream to decompressIOException
- if an I/O error occursLZ4FrameInputStream(InputStream, LZ4SafeDecompressor, XXHash32)
,
LZ4Factory.fastestInstance()
,
XXHashFactory.fastestInstance()
public LZ4FrameInputStream(InputStream in, LZ4SafeDecompressor decompressor, XXHash32 checksum) throws IOException
InputStream
that will decompress data using the LZ4 algorithm.in
- the stream to decompressdecompressor
- the decompressor to usechecksum
- the hash function to useIOException
- if an I/O error occurspublic int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream