SnappyFramedInputStream
which implements
the standard x-snappy-framed
specification.@Deprecated public class SnappyInputStream extends AbstractSnappyInputStream
SnappyOutputStream
.
NOTE:This implementation cannot read compressed data produced
by SnappyFramedOutputStream
.
AbstractSnappyInputStream.FrameAction, AbstractSnappyInputStream.FrameData, AbstractSnappyInputStream.FrameMetaData
Modifier and Type | Field and Description |
---|---|
private static int |
HEADER_LENGTH
Deprecated.
|
Constructor and Description |
---|
SnappyInputStream(java.io.InputStream in)
Deprecated.
Creates a Snappy input stream to read data from the specified underlying input stream.
|
SnappyInputStream(java.io.InputStream in,
boolean verifyChecksums)
Deprecated.
Creates a Snappy input stream to read data from the specified underlying input stream.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSnappyInputStream.FrameData |
getFrameData(byte[] frameHeader,
byte[] content,
int length)
Deprecated.
Take the frame header and the content of the frame to describe metadata
about the content.
|
protected AbstractSnappyInputStream.FrameMetaData |
getFrameMetaData(byte[] frameHeader)
Deprecated.
Use the content of the frameHeader to describe what type of frame we have
and the action to take.
|
available, close, read, read
private static final int HEADER_LENGTH
public SnappyInputStream(java.io.InputStream in) throws java.io.IOException
in
- the underlying input streamjava.io.IOException
public SnappyInputStream(java.io.InputStream in, boolean verifyChecksums) throws java.io.IOException
in
- the underlying input streamverifyChecksums
- if true, checksums in input stream will be verifiedjava.io.IOException
protected AbstractSnappyInputStream.FrameMetaData getFrameMetaData(byte[] frameHeader) throws java.io.IOException
AbstractSnappyInputStream
getFrameMetaData
in class AbstractSnappyInputStream
java.io.IOException
protected AbstractSnappyInputStream.FrameData getFrameData(byte[] frameHeader, byte[] content, int length)
AbstractSnappyInputStream
getFrameData
in class AbstractSnappyInputStream
frameHeader
- The frame header.content
- The content of the of the frame. Content begins at index 0
.length
- The length of the content.