Class HuffmanTable


  • final class HuffmanTable
    extends Segment
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private short[][][] l  
      private static int MSB  
      private boolean[][] tc  
      private short[][][][] v  
      • Fields inherited from class com.twelvemonkeys.imageio.plugins.jpeg.Segment

        marker
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HuffmanTable()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void buildHuffTable​(int[] tab, short[] L, short[][] V)  
      (package private) void buildHuffTables​(int[][][] huffTab)  
      boolean isPresent​(int tableId, int tableClass)  
      private short[] lengths​(int tableId, int tableClass)  
      static Segment read​(java.io.DataInput data, int length)  
      private short[] tables​(int tableId, int tableClass)  
      (package private) javax.imageio.plugins.jpeg.JPEGHuffmanTable toNativeTable​(int tableId, int tableClass)  
      java.lang.String toString()  
      • Methods inherited from class com.twelvemonkeys.imageio.plugins.jpeg.Segment

        read
      • Methods inherited from class java.lang.Object

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

      • l

        private final short[][][] l
      • v

        private final short[][][][] v
      • tc

        private final boolean[][] tc
    • Constructor Detail

      • HuffmanTable

        private HuffmanTable()
    • Method Detail

      • buildHuffTables

        void buildHuffTables​(int[][][] huffTab)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • buildHuffTable

        private void buildHuffTable​(int[] tab,
                                    short[] L,
                                    short[][] V)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • read

        public static Segment read​(java.io.DataInput data,
                                   int length)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • isPresent

        public boolean isPresent​(int tableId,
                                 int tableClass)
      • lengths

        private short[] lengths​(int tableId,
                                int tableClass)
      • tables

        private short[] tables​(int tableId,
                               int tableClass)
      • toNativeTable

        javax.imageio.plugins.jpeg.JPEGHuffmanTable toNativeTable​(int tableId,
                                                                  int tableClass)