|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectccs.utils.BitStringWriter
public class BitStringWriter
A BitStringWriter accepts an arbitrary number of bits, one at a time, which it assembles into a byte string. The treatment is big-endian: the first bit is the high-order bit of the first byte. This is compatible with BitStringReader.
| Constructor Summary | |
|---|---|
BitStringWriter()
|
|
| Method Summary | |
|---|---|
void |
add(int bit)
Add the next bit to the stream. |
byte[] |
getBytes()
return the output so far. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitStringWriter()
| Method Detail |
|---|
public void add(int bit)
public byte[] getBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||