public class FramedSnappyCompressorInputStream extends CompressorInputStream
Based on the "spec" in the version "Last revised: 2013-10-25"
| Constructor and Description |
|---|
FramedSnappyCompressorInputStream(InputStream in)
Constructs a new input stream that decompresses snappy-framed-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 .sz file.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
count, count, getBytesRead, getCount, pushedBackBytesmark, markSupported, read, reset, skippublic FramedSnappyCompressorInputStream(InputStream in) throws IOException
in - the InputStream from which to read the compressed dataIOExceptionpublic int read() throws IOException
read in class InputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class InputStreamIOExceptionpublic int available() throws IOException
available in class InputStreamIOExceptionpublic static boolean matches(byte[] signature, int length)
.sz files start with a chunk with tag 0xff and content sNaPpY.
signature - the bytes to checklength - the number of bytes to checkCopyright © 2015 The Apache Software Foundation. All rights reserved.