SnappyFramedInputStream which implements
the standard x-snappy-framed specification.@Deprecated public class SnappyInputStream extends InputStream
SnappyOutputStream.
NOTE:This implementation cannot read compressed data produced
by SnappyFramedOutputStream.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractSnappyInputStream.FrameData |
static class |
AbstractSnappyInputStream.FrameMetaData |
| Constructor and Description |
|---|
SnappyInputStream(InputStream in)
Deprecated.
Creates a Snappy input stream to read data from the specified underlying input stream.
|
SnappyInputStream(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 |
|---|---|
int |
available() |
void |
close() |
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.
|
int |
read() |
int |
read(byte[] output,
int offset,
int length) |
mark, markSupported, read, reset, skippublic SnappyInputStream(InputStream in) throws IOException
in - the underlying input streamIOExceptionpublic SnappyInputStream(InputStream in, boolean verifyChecksums) throws IOException
in - the underlying input streamverifyChecksums - if true, checksums in input stream will be verifiedIOExceptionprotected 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.