Class FileSVS.JPEGHuffmanInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    FileSVS

    public class FileSVS.JPEGHuffmanInputStream
    extends java.io.InputStream
    • Field Detail

      • BITS

        protected int[] BITS
      • HUFFVAL

        protected int[] HUFFVAL
      • HUFFSIZE

        protected int[] HUFFSIZE
      • HUFFCODE

        protected int[] HUFFCODE
      • VALPTR

        protected int[] VALPTR
      • MINCODE

        protected int[] MINCODE
      • MAXCODE

        protected int[] MAXCODE
      • code

        private int code
      • index

        private int index
    • Constructor Detail

      • JPEGHuffmanInputStream

        public JPEGHuffmanInputStream​(FileSVS.JPEGBitInputStream in,
                                      java.io.InputStream tables)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • JPEGHuffmanInputStream

        public JPEGHuffmanInputStream​(java.io.InputStream tables)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • setInputStream

        public void setInputStream​(FileSVS.JPEGBitInputStream in)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • initialize

        private void initialize​(java.io.InputStream tables)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readTableData

        private int readTableData​(java.io.InputStream tables)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • generateSizeTable

        private void generateSizeTable​(int LASTK)
      • generateCodeTable

        private void generateCodeTable​(int LASTK)
      • generateDecoderTable

        private void generateDecoderTable()
      • toString

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

        public int readBits​(int bitSize)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • restart

        public void restart()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException