|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.util.ByteBuffer
public class ByteBuffer
A dynamically growing byte[].
| Constructor Summary | |
|---|---|
ByteBuffer()
|
|
ByteBuffer(int initialSize)
|
|
| Method Summary | |
|---|---|
void |
append(byte bite)
Appends a byte to this buffer. |
void |
append(byte[] bytes)
Appends the bytes to this buffer. |
void |
append(int val)
Appends an int to this buffer. |
byte[] |
buffer()
Get's the bytes, the backing store for this buffer. |
int |
capacity()
|
void |
clear()
|
byte[] |
copyOfUsedBytes()
Get's a copy of the bytes used. |
byte |
get(int ii)
|
int |
position()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteBuffer()
public ByteBuffer(int initialSize)
| Method Detail |
|---|
public final void clear()
public final int position()
public final int capacity()
public final byte get(int ii)
public final byte[] buffer()
public final byte[] copyOfUsedBytes()
public final void append(byte[] bytes)
public final void append(byte bite)
public final void append(int val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||