|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--adavid.util.ByteVector
Field Summary | |
static int |
DEFAULT_INC_SIZE
controls the increment size when a new array has to be allocated. |
Constructor Summary | |
ByteVector()
default constructor |
|
ByteVector(int inc_size)
contructor: change the default increment size |
Method Summary | |
void |
add(byte b)
add a byte |
byte |
byteAt(int i)
returns the byte element at index i |
int |
length()
returns the size of the vector |
byte[] |
toArray()
returns an array representation of the byte vector |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int DEFAULT_INC_SIZE
Constructor Detail |
public ByteVector(int inc_size)
public ByteVector()
Method Detail |
public void add(byte b)
public int length()
public byte byteAt(int i)
public byte[] toArray()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |