|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ws4d.java.structures.ByteArray
public class ByteArray
Dynamic byte array.
Constructor Summary | |
---|---|
ByteArray()
Dynamic byte array. |
Method Summary | |
---|---|
void |
append(byte b)
Appends a byte to this array. |
byte |
byteAt(int index)
Returns the byte at the given position. |
byte[] |
getBytes()
Get the byte array from this object. |
int |
size()
The size of this byte array. |
java.lang.String |
toString()
|
void |
trunc()
Truncate the byte array to the correct size. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ByteArray()
Method Detail |
---|
public void append(byte b)
b
- the byte to append.public int size()
public byte byteAt(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- the position.
java.lang.ArrayIndexOutOfBoundsException
public void trunc()
public byte[] getBytes()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |