Package org.iq80.snappy
Class SnappyInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.iq80.snappy.AbstractSnappyInputStream
-
- org.iq80.snappy.SnappyInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
@Deprecated public class SnappyInputStream extends AbstractSnappyInputStream
Deprecated.Prefer the use ofSnappyFramedInputStream
which implements the standardx-snappy-framed
specification.This class implements an input stream for reading Snappy compressed data of the format produced bySnappyOutputStream
.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 Modifier and Type Field Description private static int
HEADER_LENGTH
Deprecated.
-
Constructor Summary
Constructors Constructor Description SnappyInputStream(java.io.InputStream in)
Deprecated.Creates a Snappy input stream to read data from the specified underlying input stream.SnappyInputStream(java.io.InputStream in, boolean verifyChecksums)
Deprecated.Creates a Snappy input stream to read data from the specified underlying input stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.-
Methods inherited from class org.iq80.snappy.AbstractSnappyInputStream
available, close, read, read
-
-
-
-
Field Detail
-
HEADER_LENGTH
private static final int HEADER_LENGTH
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SnappyInputStream
public SnappyInputStream(java.io.InputStream in) throws java.io.IOException
Deprecated.Creates a Snappy input stream to read data from the specified underlying input stream.- Parameters:
in
- the underlying input stream- Throws:
java.io.IOException
-
SnappyInputStream
public SnappyInputStream(java.io.InputStream in, boolean verifyChecksums) throws java.io.IOException
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:
java.io.IOException
-
-
Method Detail
-
getFrameMetaData
protected AbstractSnappyInputStream.FrameMetaData getFrameMetaData(byte[] frameHeader) throws java.io.IOException
Deprecated.Description copied from class:AbstractSnappyInputStream
Use the content of the frameHeader to describe what type of frame we have and the action to take.- Specified by:
getFrameMetaData
in classAbstractSnappyInputStream
- Throws:
java.io.IOException
-
getFrameData
protected AbstractSnappyInputStream.FrameData getFrameData(byte[] frameHeader, byte[] content, int length)
Deprecated.Description copied from class:AbstractSnappyInputStream
Take the frame header and the content of the frame to describe metadata about the content.- Specified by:
getFrameData
in 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.
-
-