|Constructor and Description|
Constructs a new input stream that decompresses snappy-framed-compressed data from the specified input stream.
|Modifier and Type||Method and Description|
Checks if the signature matches what is expected for a .sz file.
count, count, getBytesRead, getCount, pushedBackBytes
public FramedSnappyCompressorInputStream(InputStream in) throws IOException
in- the InputStream from which to read the compressed data
IOException- if reading fails
public void close() throws IOException
public int read(byte b, int off, int len) throws IOException
public int available() throws IOException
public static boolean matches(byte signature, int length)
.sz files start with a chunk with tag 0xff and content sNaPpY.
signature- the bytes to check
length- the number of bytes to check
Copyright © 2016 The Apache Software Foundation. All rights reserved.