private static class FileSinkSWF.BitString
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static byte |
BIT_0
Bit 0 mask.
|
protected static byte |
BIT_1
Bit 1 mask.
|
protected static byte |
BIT_2
Bit 2 mask.
|
protected static byte |
BIT_3
Bit 3 mask.
|
protected static byte |
BIT_4
Bit 4 mask.
|
protected static byte |
BIT_5
Bit 5 mask.
|
protected static byte |
BIT_6
Bit 6 mask.
|
protected static byte |
BIT_7
Bit 7 mask.
|
private int |
bitCurseur
Size of the buffer, current pointers.
|
protected static byte[] |
BITS
Set of all masks.
|
protected java.nio.ByteBuffer |
buffer
Buffer storing data.
|
private int |
curseur
Size of the buffer, current pointers.
|
private int |
size
Size of the buffer, current pointers.
|
Constructor and Description |
---|
FileSinkSWF.BitString(int... values) |
Modifier and Type | Method and Description |
---|---|
private void |
__resize(int size)
Resize the string.
|
void |
add(boolean value)
Add a bit.
|
void |
fill(boolean v)
Fill with the given value.
|
void |
fill(boolean v,
int offset,
int size) |
void |
setValue(int id,
boolean v) |
java.lang.String |
toString()
BitString to string.
|
boolean |
valueAt(int index)
Bit value at the given index.
|
protected static final byte BIT_0
protected static final byte BIT_1
protected static final byte BIT_2
protected static final byte BIT_3
protected static final byte BIT_4
protected static final byte BIT_5
protected static final byte BIT_6
protected static final byte BIT_7
protected static final byte[] BITS
protected java.nio.ByteBuffer buffer
ByteBuffer
private int size
private int curseur
private int bitCurseur
private void __resize(int size)
size
- in bytes new sizepublic boolean valueAt(int index)
index
- bit indexpublic void add(boolean value)
value
- bit valuepublic void fill(boolean v)
public void fill(boolean v, int offset, int size)
public void setValue(int id, boolean v)
public java.lang.String toString()
toString
in class java.lang.Object