|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
com.imagero.uio.io.BitOutputStream
adds ability to write streams bitewise
| Field Summary | |
protected boolean |
invertBitOrder
|
protected int |
vbits
|
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
BitOutputStream(java.io.OutputStream out)
|
|
| Method Summary | |
void |
flush()
writes bits from buffer to output stream |
int |
getBitsToWrite()
|
boolean |
isInvertBitOrder()
|
void |
setBitsToWrite(int bitsToWrite)
set how much bits should be written to stream every write() call |
void |
setInvertBitOrder(boolean invertBitOrder)
|
void |
write(byte[] b)
Writes b.length bytes to output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from byte array starting at given offset to output stream. |
void |
write(int b)
Writes some bits (max 8) from the specified int to stream. |
void |
write(int b,
int nbits)
Writes some bits (max 8) from the specified int to stream. |
| Methods inherited from class java.io.FilterOutputStream |
close |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int vbits
protected boolean invertBitOrder
| Constructor Detail |
public BitOutputStream(java.io.OutputStream out)
| Method Detail |
public int getBitsToWrite()
public void setBitsToWrite(int bitsToWrite)
bitsToWrite - public boolean isInvertBitOrder()
public void setInvertBitOrder(boolean invertBitOrder)
public void write(int b)
throws java.io.IOException
b - int which should be written
java.io.IOException - if an I/O error occurssetBitsToWrite(int),
getBitsToWrite()
public void write(int b,
int nbits)
throws java.io.IOException
b - int which should be writtennbits - bit count to write
java.io.IOException - if an I/O error occurs
public void flush()
throws java.io.IOException
java.io.IOException - if I/O error occurs
public void write(byte[] b)
throws java.io.IOException
b - the data to be written.
java.io.IOException - if an I/O error occurs.
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
b - the data to be written.off - the start offset in the data.len - the number of bytes to write.
java.io.IOException - if I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||