public class ByteList extends ElementList
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
list
Element container.
|
CAP, size| Constructor and Description |
|---|
ByteList()
Default constructor.
|
ByteList(int c)
Constructor, specifying an initial array capacity.
|
| Modifier and Type | Method and Description |
|---|---|
ByteList |
add(byte[] b)
Adds a byte array to the container.
|
ByteList |
add(byte[] b,
int s,
int e)
Adds a partial byte array to the container.
|
ByteList |
add(int e)
Adds an entry to the array.
|
byte |
get(int p)
Returns the byte at the specified position.
|
byte[] |
toArray()
Returns an array with all elements.
|
java.lang.String |
toString() |
public ByteList()
public ByteList(int c)
c - array capacitypublic ByteList add(int e)
e - entry to be addedpublic ByteList add(byte[] b)
b - the entries to be addedpublic ByteList add(byte[] b, int s, int e)
b - the entries to be addeds - start positione - end positionpublic byte get(int p)
p - positionpublic byte[] toArray()
public java.lang.String toString()
toString in class java.lang.Object