public class ByteBuffer extends Object
Constructor and Description |
---|
ByteBuffer() |
ByteBuffer(int initialSize) |
Modifier and Type | Method and Description |
---|---|
void |
append(byte b)
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 i) |
int |
position() |
public ByteBuffer()
public ByteBuffer(int initialSize)
public final void clear()
public final int position()
public final int capacity()
public final byte get(int i)
public final byte[] buffer()
public final byte[] copyOfUsedBytes()
public final void append(byte[] bytes)
public final void append(byte b)
public final void append(int val)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.