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, readprivate static final int HEADER_LENGTH
public SnappyInputStream(java.io.InputStream in)
throws java.io.IOException
in - the underlying input streamjava.io.IOExceptionpublic 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.IOExceptionprotected AbstractSnappyInputStream.FrameMetaData getFrameMetaData(byte[] frameHeader) throws java.io.IOException
AbstractSnappyInputStreamgetFrameMetaData in class AbstractSnappyInputStreamjava.io.IOExceptionprotected AbstractSnappyInputStream.FrameData getFrameData(byte[] frameHeader, byte[] content, int length)
AbstractSnappyInputStreamgetFrameData in class AbstractSnappyInputStreamframeHeader - The frame header.content - The content of the of the frame. Content begins at index 0.length - The length of the content.