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) |
readpublic 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 FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark in class FilterInputStreampublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStream