Class LZMA2Decoder

    • Constructor Summary

      Constructors 
      Constructor Description
      LZMA2Decoder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.io.InputStream decode​(java.lang.String archiveName, java.io.InputStream in, long uncompressedLength, Coder coder, byte[] password, int maxMemoryLimitInKb)  
      (package private) java.io.OutputStream encode​(java.io.OutputStream out, java.lang.Object opts)  
      private int getDictionarySize​(Coder coder)  
      private int getDictSize​(java.lang.Object opts)  
      private org.tukaani.xz.LZMA2Options getOptions​(java.lang.Object opts)  
      (package private) byte[] getOptionsAsProperties​(java.lang.Object opts)  
      (package private) java.lang.Object getOptionsFromCoder​(Coder coder, java.io.InputStream in)  
      private int numberOptionOrDefault​(java.lang.Object opts)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LZMA2Decoder

        LZMA2Decoder()
    • Method Detail

      • decode

        java.io.InputStream decode​(java.lang.String archiveName,
                                   java.io.InputStream in,
                                   long uncompressedLength,
                                   Coder coder,
                                   byte[] password,
                                   int maxMemoryLimitInKb)
                            throws java.io.IOException
        Specified by:
        decode in class CoderBase
        Returns:
        a stream that reads from in using the configured coder and password.
        Throws:
        java.io.IOException
      • encode

        java.io.OutputStream encode​(java.io.OutputStream out,
                                    java.lang.Object opts)
                             throws java.io.IOException
        Overrides:
        encode in class CoderBase
        Returns:
        a stream that writes to out using the given configuration.
        Throws:
        java.io.IOException
      • getOptionsAsProperties

        byte[] getOptionsAsProperties​(java.lang.Object opts)
        Overrides:
        getOptionsAsProperties in class CoderBase
        Returns:
        property-bytes to write in a Folder block
      • getOptionsFromCoder

        java.lang.Object getOptionsFromCoder​(Coder coder,
                                             java.io.InputStream in)
                                      throws java.io.IOException
        Overrides:
        getOptionsFromCoder in class CoderBase
        Returns:
        configuration options that have been used to create the given InputStream from the given Coder
        Throws:
        java.io.IOException
      • getDictSize

        private int getDictSize​(java.lang.Object opts)
      • getDictionarySize

        private int getDictionarySize​(Coder coder)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getOptions

        private org.tukaani.xz.LZMA2Options getOptions​(java.lang.Object opts)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • numberOptionOrDefault

        private int numberOptionOrDefault​(java.lang.Object opts)