public class SnappyFramedInputStream extends InputStream
InputStream.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractSnappyInputStream.FrameData |
static class |
AbstractSnappyInputStream.FrameMetaData |
| Constructor and Description |
|---|
SnappyFramedInputStream(InputStream in,
boolean verifyChecksums) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
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.
|
int |
read() |
int |
read(byte[] output,
int offset,
int length) |
mark, markSupported, read, reset, skippublic SnappyFramedInputStream(InputStream in, boolean verifyChecksums) throws IOException
IOExceptionprotected AbstractSnappyInputStream.FrameMetaData getFrameMetaData(byte[] frameHeader) throws IOException
IOExceptionprotected AbstractSnappyInputStream.FrameData getFrameData(byte[] frameHeader, byte[] content, int length)
frameHeader - The frame header.content - The content of the of the frame. Content begins at index 0.length - The length of the content.public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] output,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2011–2019. All rights reserved.