public final class SnappyFramedInputStream extends InputStream implements ReadableByteChannel
| Modifier and Type | Class and Description |
|---|---|
static class |
SnappyFramedInputStream.FrameData |
static class |
SnappyFramedInputStream.FrameMetaData |
| Constructor and Description |
|---|
SnappyFramedInputStream(InputStream in)
Creates a Snappy input stream to read data from the specified underlying
input stream.
|
SnappyFramedInputStream(InputStream in,
boolean verifyChecksums)
Creates a Snappy input stream to read data from the specified underlying
input stream.
|
SnappyFramedInputStream(ReadableByteChannel in)
Creates a Snappy input stream to read data from the specified underlying
channel.
|
SnappyFramedInputStream(ReadableByteChannel in,
boolean verifyChecksums)
Creates a Snappy input stream to read data from the specified underlying
channel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
isOpen() |
int |
read() |
int |
read(byte[] output,
int offset,
int length) |
int |
read(ByteBuffer dst) |
mark, markSupported, read, reset, skippublic SnappyFramedInputStream(InputStream in) throws IOException
in - the underlying input stream. Must not be null.IOExceptionpublic SnappyFramedInputStream(InputStream in, boolean verifyChecksums) throws IOException
in - the underlying input stream. Must not be null.verifyChecksums - if true, checksums in input stream will be verifiedIOExceptionpublic SnappyFramedInputStream(ReadableByteChannel in) throws IOException
in - the underlying readable channel. Must not be null.IOExceptionpublic SnappyFramedInputStream(ReadableByteChannel in, boolean verifyChecksums) throws IOException
in - the underlying readable channel. Must not be null.verifyChecksums - if true, checksums in input stream will be verifiedIOExceptionpublic 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 int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class InputStreamIOExceptionCopyright © 2011-2013 xerial.org. All Rights Reserved.