org.jimageanalyst.analyzer
Class AnalyzeSwf.BitInputStream

java.lang.Object
  extended by org.jimageanalyst.analyzer.AnalyzeSwf.BitInputStream
Enclosing class:
AnalyzeSwf

protected class AnalyzeSwf.BitInputStream
extends java.lang.Object

The BitwiseInputStream is used to access the underlaying InputStream bit by bit.


Constructor Summary
AnalyzeSwf.BitInputStream(java.io.InputStream inputStream)
          Constructs this class with an InputStream.
 
Method Summary
 int readSBits(int numBits)
          Read a signed integer value from input.
 long readUBits(int numBits)
          Read a unsigned integer value from input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzeSwf.BitInputStream

public AnalyzeSwf.BitInputStream(java.io.InputStream inputStream)
Constructs this class with an InputStream.

Parameters:
inputStream - the InputStream to read on.
Method Detail

readSBits

public int readSBits(int numBits)
              throws java.io.IOException
Read a signed integer value from input.

Parameters:
numBits - number of bits to read.
Returns:
a signed integer
Throws:
java.io.IOException - if an I/O error occurs.

readUBits

public long readUBits(int numBits)
               throws java.io.IOException
Read a unsigned integer value from input.

Parameters:
numBits - number of bits to read.
Returns:
an unsigned integer
Throws:
java.io.IOException - if an I/O error occurs.


Copyright © 2006-2007. All Rights Reserved.