Class BMPInStream

java.lang.Object
  |
  +--BMPInStream

public class BMPInStream
extends java.lang.Object

Used by the codec to read BMP data.

See Also:
BMPEncoder, BMPDecoder

Constructor Summary
BMPInStream(java.io.InputStream ins)
          Creates a new BMPInStream.
 
Method Summary
 int byteCount()
          Returns the number of bytes read since the last reset.
 int getData(int bloks)
          Same as int readData(int).
 int readData(int bloks)
          Reads 1-4 bytes from stream in intel order (lsb first).
 void resetCounter()
          Called to reset the byte counter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BMPInStream

public BMPInStream(java.io.InputStream ins)
Creates a new BMPInStream.
Method Detail

resetCounter

public void resetCounter()
Called to reset the byte counter.

byteCount

public int byteCount()
Returns the number of bytes read since the last reset.

getData

public int getData(int bloks)
            throws java.io.IOException
Same as int readData(int).

readData

public int readData(int bloks)
             throws java.io.IOException
Reads 1-4 bytes from stream in intel order (lsb first).