uk.co.mmscomputing.imageio.jpeg
Class JPEGHuffmanInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by uk.co.mmscomputing.imageio.jpeg.JPEGHuffmanInputStream
All Implemented Interfaces:
java.io.Closeable

public class JPEGHuffmanInputStream
extends java.io.InputStream


Field Summary
protected  int[] BITS
           
protected  int[] HUFFCODE
           
protected  int[] HUFFSIZE
           
protected  int[] HUFFVAL
           
protected  JPEGBitInputStream in
           
protected  int[] MAXCODE
           
protected  int[] MINCODE
           
protected  int[] VALPTR
           
 
Constructor Summary
JPEGHuffmanInputStream(java.io.InputStream tables)
           
JPEGHuffmanInputStream(JPEGBitInputStream in, java.io.InputStream tables)
           
 
Method Summary
 int read()
           
 int readBits(int bitSize)
           
 void restart()
           
 void setInputStream(JPEGBitInputStream in)
           
 java.lang.String toString()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

in

protected JPEGBitInputStream in
Constructor Detail

JPEGHuffmanInputStream

public JPEGHuffmanInputStream(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(JPEGBitInputStream in)
                    throws java.io.IOException
Throws:
java.io.IOException

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


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.