|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gcapmedia.dab.epg.binary.BitBuilder
public class BitBuilder
| Constructor Summary | |
|---|---|
BitBuilder(int size)
Create a new bithelper |
|
| Method Summary | |
|---|---|
boolean |
get(int index)
Returns the value of the bit with the specified index |
int |
position()
|
static java.lang.String |
printByteArray(byte[] bytes)
Returns a byte array as printable output |
BitBuilder |
put(int index,
boolean flag)
|
BitBuilder |
put(int index,
byte bite)
|
BitBuilder |
put(int index,
int length,
byte[] bytes)
|
BitBuilder |
put(int index,
int length,
long value)
|
void |
setSize(int size)
Set a new size for the result |
int |
size()
Returns the size of the construct |
byte[] |
toByteArray()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BitBuilder(int size)
size - | Method Detail |
|---|
public void setSize(int size)
size - public int size()
public boolean get(int index)
index - the bit index
public BitBuilder put(int index,
int length,
long value)
index - length - value -
public BitBuilder put(int index,
byte bite)
public BitBuilder put(int index,
boolean flag)
public BitBuilder put(int index,
int length,
byte[] bytes)
public byte[] toByteArray()
public static java.lang.String printByteArray(byte[] bytes)
bytes - Byte array to printpublic int position()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||