Package org.iq80.snappy
Class SnappyInputStream
java.lang.Object
java.io.InputStream
org.iq80.snappy.AbstractSnappyInputStream
org.iq80.snappy.SnappyInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Deprecated.
This class implements an input stream for reading Snappy compressed data
of the format produced by
SnappyOutputStream.
NOTE:This implementation cannot read compressed data produced
by SnappyFramedOutputStream.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.iq80.snappy.AbstractSnappyInputStream
AbstractSnappyInputStream.FrameAction, AbstractSnappyInputStream.FrameData, AbstractSnappyInputStream.FrameMetaData -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractSnappyInputStream.FrameDatagetFrameData(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.FrameMetaDatagetFrameMetaData(byte[] frameHeader) Deprecated.Use the content of the frameHeader to describe what type of frame we have and the action to take.Methods inherited from class org.iq80.snappy.AbstractSnappyInputStream
available, close, read, readMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
HEADER_LENGTH
private static final int HEADER_LENGTHDeprecated.- See Also:
-
-
Constructor Details
-
SnappyInputStream
Deprecated.Creates a Snappy input stream to read data from the specified underlying input stream.- Parameters:
in- the underlying input stream- Throws:
IOException
-
SnappyInputStream
Deprecated.Creates a Snappy input stream to read data from the specified underlying input stream.- Parameters:
in- the underlying input streamverifyChecksums- if true, checksums in input stream will be verified- Throws:
IOException
-
-
Method Details
-
getFrameMetaData
protected AbstractSnappyInputStream.FrameMetaData getFrameMetaData(byte[] frameHeader) throws IOException Deprecated.Description copied from class:AbstractSnappyInputStreamUse the content of the frameHeader to describe what type of frame we have and the action to take.- Specified by:
getFrameMetaDatain classAbstractSnappyInputStream- Throws:
IOException
-
getFrameData
protected AbstractSnappyInputStream.FrameData getFrameData(byte[] frameHeader, byte[] content, int length) Deprecated.Description copied from class:AbstractSnappyInputStreamTake the frame header and the content of the frame to describe metadata about the content.- Specified by:
getFrameDatain classAbstractSnappyInputStream- Parameters:
frameHeader- The frame header.content- The content of the of the frame. Content begins at index0.length- The length of the content.- Returns:
- Metadata about the content of the frame.
-
SnappyFramedInputStreamwhich implements the standardx-snappy-framedspecification.