|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.parser.acl.util.ByteArray
Dynamic byte array.
Constructor Summary | |
ByteArray()
Initializes the ByteArray with size 100 |
|
ByteArray(int init_size)
Initialized the ByteArray with given size |
Method Summary | |
ByteArray |
add(byte b)
Add a byte to this array. |
ByteArray |
add(byte[] b,
int len)
Add a array of bytes to this array |
ByteArray |
add(ByteArray b)
Add a ByteArray to this array |
ByteArray |
addToPos(byte b,
int pos)
Add a byte to this array is specified position. |
byte[] |
get()
Returns this array |
int |
length()
Returns the lenght of this array |
void |
reset()
Clear this array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteArray()
public ByteArray(int init_size)
init_size
- Initial size for the array.Method Detail |
public void reset()
public int length()
public byte[] get()
public ByteArray add(byte b)
b
- byte to addpublic ByteArray addToPos(byte b, int pos)
b
- byte to addpos
- positionpublic ByteArray add(byte[] b, int len)
b
- Byte array to addlen
- Lenght of byte array to add.public ByteArray add(ByteArray b)
b
- ByteArray to add
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |