Java源码示例:org.apache.commons.compress.compressors.lz4.FramedLZ4CompressorOutputStream
示例1
@Override
public OutputStream createOutputStream(
final OutputStream out ,
final long decompressSize,
final CompressResult compressResult ) throws IOException {
return new FramedLZ4CompressorOutputStream( out );
}
示例2
@Override
public OutputStream createOutputStream( final OutputStream out , final DataType dataType ) throws IOException{
return new FramedLZ4CompressorOutputStream( out );
}
示例3
@Signature
public void __construct(Environment env, OutputStream outputStream, boolean framed)
throws IOException {
this.outputStream = framed ? new FramedLZ4CompressorOutputStream(outputStream) : new BlockLZ4CompressorOutputStream(outputStream);
}