| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class ByteArray extends Object
A simple wrapper around a byte array, with a start position and count of bytes.
Constructor Summary | |
---|---|
ByteArray(byte[] b, int start, int count) Constructor |
|
ByteArray(int size) Constructor that creates a byte array of the specified size. |
Method Summary | |
---|---|
byte[] |
getBytes() Returns the internal byte array. |
int |
getCount() Returns the count of bytes |
byte[] |
Returns a new byte array that is a copy of the data. |
int |
getStart() Returns the start position |
void |
grow(int incr) Grow the byte array by incr bytes. |
void |
setCount(int count) Set the count of bytes. |
ByteArrayInputStream |
Returns a ByteArrayInputStream. |
Constructor Detail |
---|
public ByteArray(byte[] b, int start, int count)
b
start
count
public ByteArray(int size)
size
Method Detail |
---|
public byte[] getBytes()
public int getCount()
public byte[] getNewBytes()
public int getStart()
public void grow(int incr)
incr
public void setCount(int count)
count
public ByteArrayInputStream toByteArrayInputStream()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |