Package io.airlift.compress.snappy
Class SnappyFramedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- io.airlift.compress.snappy.SnappyFramedInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class SnappyFramedInputStream extends InputStream
Implements the x-snappy-framed as anInputStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSnappyFramedInputStream.FrameDatastatic classSnappyFramedInputStream.FrameMetaData
-
Constructor Summary
Constructors Constructor Description SnappyFramedInputStream(InputStream in)SnappyFramedInputStream(InputStream in, boolean verifyChecksums)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()intread()intread(byte[] output, int offset, int length)-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
SnappyFramedInputStream
public SnappyFramedInputStream(InputStream in) throws IOException
- Throws:
IOException
-
SnappyFramedInputStream
public SnappyFramedInputStream(InputStream in, boolean verifyChecksums) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] output, int offset, int length) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-