uk.co.mmscomputing.imageio.jpeg
Class JPEGBitInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by uk.co.mmscomputing.imageio.jpeg.JPEGBitInputStream
All Implemented Interfaces:
java.io.Closeable, JPEGConstants

public class JPEGBitInputStream
extends java.io.FilterInputStream
implements JPEGConstants


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Fields inherited from interface uk.co.mmscomputing.imageio.jpeg.JPEGConstants
APP0, APP1, APP10, APP11, APP12, APP13, APP14, APP15, APP2, APP3, APP4, APP5, APP6, APP7, APP8, APP9, COM, CQT, CQT2, DAC, DCTBlockSize, DCTSize, DHP, DHT, DNL, DQT, DRI, EOI, EXP, HCACTable, HCDCTable, HLACTable, HLDCTable, IZigZagTable, JPG, JPG0, JPG1, JPG10, JPG11, JPG12, JPG13, JPG2, JPG3, JPG4, JPG5, JPG6, JPG7, JPG8, JPG9, LQT, LQT2, MARK, RST0, RST1, RST2, RST3, RST4, RST5, RST6, RST7, SOF0, SOF1, SOF10, SOF11, SOF13, SOF14, SOF15, SOF2, SOF3, SOF5, SOF6, SOF7, SOF9, SOI, SOS, TEM, ZigZagTable
 
Constructor Summary
JPEGBitInputStream(java.io.InputStream in, JPEGInputStream jpeg)
           
 
Method Summary
 int readBit()
           
 int readBits(int neededBits)
           
 int readCompressed()
           
protected  java.io.InputStream readMarkedSegment()
           
 void start()
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPEGBitInputStream

public JPEGBitInputStream(java.io.InputStream in,
                          JPEGInputStream jpeg)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readMarkedSegment

protected java.io.InputStream readMarkedSegment()
                                         throws java.io.IOException
Throws:
java.io.IOException

readCompressed

public int readCompressed()
                   throws java.io.IOException
Throws:
java.io.IOException

start

public void start()
           throws java.io.IOException
Throws:
java.io.IOException

readBit

public int readBit()
            throws java.io.IOException
Throws:
java.io.IOException

readBits

public int readBits(int neededBits)
             throws java.io.IOException
Throws:
java.io.IOException


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