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

LZMA decompressor.
Since:
1.6
  • Constructor Details

    • LZMACompressorInputStream

      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

      public LZMACompressorInputStream(InputStream inputStream, int memoryLimitInKb) 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
      memoryLimitInKb - calculated memory use threshold. Throws MemoryLimitException if calculate 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