|
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.OutputStream
ch.rgw.io.BitOutputStream
public class BitOutputStream
An OutputStream for bitwise writing
Constructor Summary | |
---|---|
BitOutputStream(java.io.OutputStream out)
|
Method Summary | |
---|---|
void |
close()
|
void |
flush()
Empty the buffer, flush the remaining bits with zeroes. |
void |
pushbits(int c,
int bitnum)
Writes up to 32 bit |
static java.lang.String |
Version()
|
void |
write(boolean bit)
write a single bit |
void |
write(int c)
writes a byte into the OutputStream, starting at the position of the last written bit (not at a byte boundary) |
Methods inherited from class java.io.OutputStream |
---|
write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitOutputStream(java.io.OutputStream out)
Method Detail |
---|
public static final java.lang.String Version()
public void write(int c) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
OutputStream.write(int)
public void pushbits(int c, int bitnum) throws java.io.IOException
c
- an integer containing the bits to be writtenbitnum
- the number of bits (right aligned inside c) to write.
java.io.IOException
public void write(boolean bit) throws java.io.IOException
bit
- true for a 1-Bit, false for a 0-Bit
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
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 |