@Signature public void __construct(Environment env, OutputStream outputStream, boolean framed) throws IOException { this.outputStream = framed ? new FramedLZ4CompressorOutputStream(outputStream) : new BlockLZ4CompressorOutputStream(outputStream); } }
private void flushBlock() throws IOException { final boolean withBlockDependency = params.withBlockDependency; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try (BlockLZ4CompressorOutputStream o = new BlockLZ4CompressorOutputStream(baos, params.lz77params)) { if (withBlockDependency) { o.prefill(blockDependencyBuffer, blockDependencyBuffer.length - collectedBlockDependencyBytes,
/** * @param stream the stream to write to, should be buffered */ @Override public CompressorOutputStream getCompressorStream(OutputStream stream) throws IOException { return framed ? new FramedLZ4CompressorOutputStream(stream) : (CompressorOutputStream) new BlockLZ4CompressorOutputStream(stream); } }
private void flushBlock() throws IOException { final boolean withBlockDependency = params.withBlockDependency; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try (BlockLZ4CompressorOutputStream o = new BlockLZ4CompressorOutputStream(baos, params.lz77params)) { if (withBlockDependency) { o.prefill(blockDependencyBuffer, blockDependencyBuffer.length - collectedBlockDependencyBytes,