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, readavailable, mark, markSupported, read, read, reset, skippublic HadoopSnappyCompressionInputStream(InputStream in, CompressionProvider provider) throws IOException
IOExceptionpublic Object nextEntry() throws IOException
nextEntry in class CompressionInputStreamIOExceptionpublic 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