| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | ByteArray(byte[]
the byte array to wrap b, int start position in byte array start, int number of bytes in byte array count)Constructor |
| public | ByteArray(int
the size of the ByteArray size)Constructor that creates a byte array of the specified size. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public int | |
| public byte[] | Returns: a new byte array with the bytes from start for countReturns a new byte array that is a copy of the data. |
| public int | |
| public void | |
| public void | |
| public ByteArrayInputStream |
| bytes | back to summary |
|---|---|
| private byte[] bytes | |
| count | back to summary |
|---|---|
| private int count | |
| start | back to summary |
|---|---|
| private int start | |
| ByteArray | back to summary |
|---|---|
| public ByteArray(byte[] b, int start, int count) Constructor
| |
| ByteArray | back to summary |
|---|---|
| public ByteArray(int size) Constructor that creates a byte array of the specified size.
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() Returns the internal byte array. Note that this is a live reference to the actual data, not a copy.
| |
| getCount | back to summary |
|---|---|
| public int getCount() Returns the count of bytes
| |
| getNewBytes | back to summary |
|---|---|
| public byte[] getNewBytes() Returns a new byte array that is a copy of the data.
| |
| getStart | back to summary |
|---|---|
| public int getStart() Returns the start position
| |
| grow | back to summary |
|---|---|
| public void grow(int incr) Grow the byte array by incr bytes.
| |
| setCount | back to summary |
|---|---|
| public void setCount(int count) Set the count of bytes.
| |
| toByteArrayInputStream | back to summary |
|---|---|
| public ByteArrayInputStream toByteArrayInputStream() Returns a ByteArrayInputStream.
| |