public class SnappyFramedInputStream extends AbstractSnappyInputStream
InputStream.AbstractSnappyInputStream.FrameAction, AbstractSnappyInputStream.FrameData, AbstractSnappyInputStream.FrameMetaData| Constructor and Description |
|---|
SnappyFramedInputStream(java.io.InputStream in,
boolean verifyChecksums) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractSnappyInputStream.FrameData |
getFrameData(byte[] frameHeader,
byte[] content,
int length)
Take the frame header and the content of the frame to describe metadata
about the content.
|
protected AbstractSnappyInputStream.FrameMetaData |
getFrameMetaData(byte[] frameHeader)
Use the content of the frameHeader to describe what type of frame we have
and the action to take.
|
available, close, read, readpublic SnappyFramedInputStream(java.io.InputStream in,
boolean verifyChecksums)
throws java.io.IOException
java.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.