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, read
public SnappyFramedInputStream(java.io.InputStream in, boolean verifyChecksums) throws java.io.IOException
java.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.