@Signature public void __construct(Environment env, InputStream inputStream, boolean framed) throws IOException { this.inputStream = framed ? new FramedLZ4CompressorInputStream(inputStream) : new BlockLZ4CompressorInputStream(inputStream); } }
return new FramedLZ4CompressorInputStream(in, actualDecompressConcatenated);
/** * @param stream the stream to read from, should be buffered */ @Override public CompressorInputStream getCompressorStream(InputStream stream) throws IOException { return framed ? new FramedLZ4CompressorInputStream(stream) : (CompressorInputStream) new BlockLZ4CompressorInputStream(stream); }
/** * @param stream the stream to read from, should be buffered * @param decompressConcatenated * if true, decompress until the end of the * input; if false, stop after the first * stream */ @Override public CompressorInputStream getCompressorStream(InputStream stream, boolean decompressConcatenated) throws IOException { if (!framed && decompressConcatenated) { throw new UnsupportedOperationException("only the frame format supports" + " concatenated streams"); } return framed ? new FramedLZ4CompressorInputStream(stream, decompressConcatenated) : (CompressorInputStream) new BlockLZ4CompressorInputStream(stream); }
return new FramedLZ4CompressorInputStream(in, actualDecompressConcatenated);