|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.io.util.ByteArray
Simple holder for a an array of Bytes - used instead of a ByteBuffer to avoid unecessary System.array() copies
| Constructor Summary | |
ByteArray()
Construct an empty ByteArray |
|
ByteArray(byte[] buf)
Create a byte array |
|
ByteArray(byte[] buf,
int offset,
int length)
Create a ByteArray |
|
| Method Summary | |
void |
clear()
clear the values held by this ByteArray |
ByteArray |
copy()
make a copy |
byte |
get(int position)
return the byte at the position |
byte[] |
getBuf()
|
int |
getLength()
|
int |
getOffset()
|
void |
reset(byte[] buf)
reset values |
void |
reset(byte[] buf,
int offset,
int length)
reset values |
void |
setBuf(byte[] buf)
|
void |
setLength(int length)
|
void |
setOffset(int offset)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteArray()
public ByteArray(byte[] buf)
buf -
public ByteArray(byte[] buf,
int offset,
int length)
buf - offset - length - | Method Detail |
public void clear()
public void reset(byte[] buf)
buf -
public void reset(byte[] buf,
int offset,
int length)
buf - offset - length - public byte[] getBuf()
public void setBuf(byte[] buf)
buf - The buf to set.public int getLength()
public void setLength(int length)
length - The length to set.public int getOffset()
public void setOffset(int offset)
offset - The offset to set.public byte get(int position)
position -
public ByteArray copy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||