Class HuffmanDecoder.DecodingMemory

  • Enclosing class:
    HuffmanDecoder

    private static class HuffmanDecoder.DecodingMemory
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int mask  
      private byte[] memory  
      private int wHead  
      private boolean wrappedAround  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) byte add​(byte b)  
      (package private) void add​(byte[] b, int off, int len)  
      private int incCounter​(int counter)  
      (package private) void recordToBuffer​(int distance, int length, byte[] buff)  
      • Methods inherited from class java.lang.Object

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

      • memory

        private final byte[] memory
      • mask

        private final int mask
      • wHead

        private int wHead
      • wrappedAround

        private boolean wrappedAround
    • Constructor Detail

      • DecodingMemory

        private DecodingMemory()
      • DecodingMemory

        private DecodingMemory​(int bits)
    • Method Detail

      • add

        byte add​(byte b)
      • add

        void add​(byte[] b,
                 int off,
                 int len)
      • recordToBuffer

        void recordToBuffer​(int distance,
                            int length,
                            byte[] buff)
      • incCounter

        private int incCounter​(int counter)