|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagero.uio.FilterDataOutput
com.imagero.uio.io.BitDataOutputStream
adds ability to write streams bitwise
| Field Summary | |
protected int |
bitbuf
|
protected int |
fillByte
|
protected byte[] |
flipTable
|
protected boolean |
invertBitOrder
|
protected static int[] |
mask
|
protected int |
vbits
|
| Fields inherited from class com.imagero.uio.FilterDataOutput |
out |
| Constructor Summary | |
BitDataOutputStream(java.io.DataOutput out)
|
|
| Method Summary | |
void |
flush()
writes bits from buffer to output stream |
int |
getBitsToWrite()
|
int |
getFillByte()
get fill byte used to adjust stream to byte boundary. |
boolean |
isInvertBitOrder()
|
void |
setBitsToWrite(int bitsToWrite)
set how much bits should be written to stream every write() call |
void |
setFillByte(int fillByte)
set fill byte used to adjust stream to byte boundary |
void |
setInvertBitOrder(boolean invertBitOrder)
|
void |
write(int b)
Writes some bits from the specified int to stream. |
void |
write(int b,
int nbits)
Writes some bits from the specified int to stream. |
protected void |
write8()
|
| Methods inherited from class com.imagero.uio.FilterDataOutput |
write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int[] mask
protected int bitbuf
protected int vbits
protected byte[] flipTable
protected boolean invertBitOrder
protected int fillByte
| Constructor Detail |
public BitDataOutputStream(java.io.DataOutput 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
write in interface java.io.DataOutputwrite in class FilterDataOutputb - 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
protected void write8()
throws java.io.IOException
java.io.IOExceptionpublic int getFillByte()
public void setFillByte(int fillByte)
fillByte - int
public void flush()
throws java.io.IOException
java.io.IOException - if I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||