|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.imgfmt.app.BitWriter
public class BitWriter
A class to write the bitstream.
Constructor Summary | |
---|---|
BitWriter()
|
Method Summary | |
---|---|
byte[] |
getBytes()
|
int |
getLength()
|
void |
put1(boolean b)
|
void |
putn(int bval,
int nb)
Put a number of bits into the buffer, growing it if necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitWriter()
Method Detail |
---|
public void put1(boolean b)
public void putn(int bval, int nb)
bval
- The bits to add, the lowest n bits will be added to
the buffer.nb
- The number of bits.public byte[] getBytes()
public int getLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |