Class LZMACompressorInputStream

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

public class LZMACompressorInputStream extends CompressorInputStream implements InputStreamStatistics
LZMA decompressor.
Since:
1.6
  • Field Details

    • countingStream

      private final org.apache.commons.io.input.BoundedInputStream countingStream
    • in

      private final InputStream in
  • Constructor Details

    • LZMACompressorInputStream

      private LZMACompressorInputStream(LZMACompressorInputStream.Builder builder) throws IOException
      Throws:
      IOException
    • LZMACompressorInputStream

      public LZMACompressorInputStream(InputStream inputStream) throws IOException
      Creates a new input stream that decompresses LZMA-compressed data from the specified input stream.
      Parameters:
      inputStream - where to read the compressed data
      Throws:
      IOException - if the input is not in the .lzma format, the input is corrupt or truncated, the .lzma headers specify sizes that are not supported by this implementation, or the underlying inputStream throws an exception
    • LZMACompressorInputStream

      @Deprecated public LZMACompressorInputStream(InputStream inputStream, int memoryLimitKiB) throws IOException
      Deprecated.
      Creates a new input stream that decompresses LZMA-compressed data from the specified input stream.
      Parameters:
      inputStream - where to read the compressed data
      memoryLimitKiB - Sets a working memory threshold in kibibytes (KiB). Processing throws MemoryLimitException if memory use is above this threshold.
      Throws:
      IOException - if the input is not in the .lzma format, the input is corrupt or truncated, the .lzma headers specify sizes that are not supported by this implementation, or the underlying inputStream throws an exception
      Since:
      1.14
  • Method Details