uk.co.mmscomputing.imageio.gif
Class GIFBitInputStream

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

public class GIFBitInputStream
extends java.io.InputStream


Field Summary
protected  int count
           
protected  byte[] data
           
protected  boolean eof
           
protected  java.io.InputStream in
           
protected  int max
           
 
Constructor Summary
GIFBitInputStream(java.io.InputStream in)
           
 
Method Summary
protected  void clrBits(int bitcount)
           
protected  int getBits(int bitcount)
           
protected  void needBits(int bitcount)
           
 int read()
           
 int readBits(int bitcount)
           
 
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, toString, wait, wait, wait
 

Field Detail

eof

protected boolean eof

count

protected int count

max

protected int max

data

protected byte[] data

in

protected java.io.InputStream in
Constructor Detail

GIFBitInputStream

public GIFBitInputStream(java.io.InputStream in)
Method Detail

read

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

readBits

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

needBits

protected void needBits(int bitcount)
                 throws java.io.IOException
Throws:
java.io.IOException

clrBits

protected void clrBits(int bitcount)

getBits

protected int getBits(int bitcount)


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