public class HadoopSnappyCompressionInputStream extends CompressionInputStream
Constructor and Description |
---|
HadoopSnappyCompressionInputStream(InputStream in,
CompressionProvider provider) |
Modifier and Type | Method and Description |
---|---|
static InputStream |
getSnappyInputStream(InputStream in)
Gets a CompressionInputStream that uses the snappy codec and wraps the supplied base input stream.
|
static InputStream |
getSnappyInputStream(int bufferSize,
InputStream in)
Gets an InputStream that uses the snappy codec and wraps the supplied base input stream.
|
Object |
nextEntry() |
close, getCompressionProvider, read, read, read
available, mark, markSupported, reset, skip
public HadoopSnappyCompressionInputStream(InputStream in, CompressionProvider provider) throws IOException
IOException
public Object nextEntry() throws IOException
nextEntry
in class CompressionInputStream
IOException
public static InputStream getSnappyInputStream(InputStream in) throws Exception
in
- the base input stream to wrap aroundException
- if snappy is not available or an error occurs during reflectionpublic static InputStream getSnappyInputStream(int bufferSize, InputStream in) throws Exception
the
- buffer size for the codec to use (in bytes)in
- the base input stream to wrap aroundException
- if snappy is not available or an error occurs during reflection