Class LZMACompressorInputStream

    • Constructor Detail

      • 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

        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