|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
ch.rgw.io.BitInputStream
public class BitInputStream
An InputStream for bitwise reading.
Constructor Summary | |
---|---|
BitInputStream(java.io.InputStream in)
|
Method Summary | |
---|---|
int |
available()
Tells whether one or more bits can be read without blocking. |
void |
close()
|
int |
pullBits(int bitnum)
reads up to 32 bits and returns them as int. |
int |
read()
reads a byte, starting not at byte boundaries, but at the last read bit. |
boolean |
readBit()
reads a single bit |
static java.lang.String |
Version()
|
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitInputStream(java.io.InputStream in)
Method Detail |
---|
public static final java.lang.String Version()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read()
public int pullBits(int bitnum) throws java.io.IOException
bitnum
- number of bits to read
java.io.IOException
public boolean readBit() throws java.io.IOException
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |