Package lzma.sdk.lzma

Class Encoder.LiteralEncoder.Encoder2

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) short[] m_Encoders  
    • Constructor Summary

      Constructors 
      Constructor Description
      Encoder2()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encode​(Encoder rangeEncoder, byte symbol)  
      void encodeMatched​(Encoder rangeEncoder, byte matchByte, byte symbol)  
      int getPrice​(boolean matchMode, byte matchByte, byte symbol)  
      void init()  
      • Methods inherited from class java.lang.Object

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

      • m_Encoders

        short[] m_Encoders
    • Constructor Detail

      • Encoder2

        Encoder2()
    • Method Detail

      • init

        public void init()
      • encode

        public void encode​(Encoder rangeEncoder,
                           byte symbol)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • encodeMatched

        public void encodeMatched​(Encoder rangeEncoder,
                                  byte matchByte,
                                  byte symbol)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getPrice

        public int getPrice​(boolean matchMode,
                            byte matchByte,
                            byte symbol)