public class SnappyStreamFactory extends java.lang.Object implements CompressorStreamFactory
| Constructor and Description |
|---|
SnappyStreamFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.compress.compressors.CompressorInputStream |
getCompressorStream(java.io.InputStream stream) |
org.apache.commons.compress.compressors.CompressorOutputStream |
getCompressorStream(java.io.OutputStream stream) |
protected boolean |
isFramed()
Whether to use the "framing format".
|
void |
setFramed(boolean framed)
Whether to use the "framing format".
|
public void setFramed(boolean framed)
Defaults to true.
protected boolean isFramed()
public org.apache.commons.compress.compressors.CompressorInputStream getCompressorStream(java.io.InputStream stream)
throws java.io.IOException
getCompressorStream in interface CompressorStreamFactorystream - the stream to read from, should be bufferedjava.io.IOExceptionpublic org.apache.commons.compress.compressors.CompressorOutputStream getCompressorStream(java.io.OutputStream stream)
throws java.io.IOException
getCompressorStream in interface CompressorStreamFactorystream - the stream to write to, should be bufferedjava.io.IOException