Class FramedLZ4CompressorInputStream

java.lang.Object
java.io.InputStream
org.apache.commons.compress.compressors.CompressorInputStream
org.apache.commons.compress.compressors.lz4.FramedLZ4CompressorInputStream
All Implemented Interfaces:
Closeable, AutoCloseable, InputStreamStatistics

CompressorInputStream for the LZ4 frame format.

Based on the "spec" in the version "1.5.1 (31/03/2015)"

Since:
1.14
See Also:
This class is not thread-safe
  • Constructor Details

    • FramedLZ4CompressorInputStream

      Creates a new input stream that decompresses streams compressed using the LZ4 frame format and stops after decompressing the first frame.
      Parameters:
      in - the InputStream from which to read the compressed data
      Throws:
      IOException - if reading fails
    • FramedLZ4CompressorInputStream

      public FramedLZ4CompressorInputStream(InputStream in, boolean decompressConcatenated) throws IOException
      Creates a new input stream that decompresses streams compressed using the LZ4 frame format.
      Parameters:
      in - the InputStream from which to read the compressed data
      decompressConcatenated - if true, decompress until the end of the input; if false, stop after the first LZ4 frame and leave the input position to point to the next byte after the frame stream
      Throws:
      IOException - if reading fails
  • Method Details