public class LZ4StreamFactory extends java.lang.Object implements CompressorWithConcatenatedStreamsFactory
| Constructor and Description |
|---|
LZ4StreamFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.compress.compressors.CompressorInputStream |
getCompressorStream(java.io.InputStream stream) |
org.apache.commons.compress.compressors.CompressorInputStream |
getCompressorStream(java.io.InputStream stream,
boolean decompressConcatenated) |
org.apache.commons.compress.compressors.CompressorOutputStream |
getCompressorStream(java.io.OutputStream stream) |
protected boolean |
isFramed()
Whether to use the "frame format".
|
void |
setFramed(boolean framed)
Whether to use the "frame 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.CompressorInputStream getCompressorStream(java.io.InputStream stream,
boolean decompressConcatenated)
throws java.io.IOException
getCompressorStream in interface CompressorWithConcatenatedStreamsFactorystream - the stream to read from, should be buffereddecompressConcatenated - if true, decompress until the end of the
input; if false, stop after the first
streamjava.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