public class ByteBuilder extends Object
Constructor and Description |
---|
ByteBuilder() |
ByteBuilder(byte[] array) |
ByteBuilder(int capacity) |
Modifier and Type | Method and Description |
---|---|
ByteBuilder |
append(boolean value) |
ByteBuilder |
append(byte value) |
ByteBuilder |
append(byte[] value) |
ByteBuilder |
append(byte[] value,
int offset,
int len) |
ByteBuilder |
append(ByteBuilder value) |
ByteBuilder |
append(char value) |
ByteBuilder |
append(char[] value) |
ByteBuilder |
append(char[] value,
int offset,
int len) |
ByteBuilder |
append(double value) |
ByteBuilder |
append(float value) |
ByteBuilder |
append(int value) |
ByteBuilder |
append(long value) |
ByteBuilder |
append(Object value) |
ByteBuilder |
append(short value) |
ByteBuilder |
append(String value) |
ByteBuilder |
append(StringBuffer value) |
ByteBuilder |
append(StringBuffer value,
Charset charset) |
ByteBuilder |
append(String value,
Charset charset) |
ByteBuilder |
appendSpecial(long value,
int length,
boolean preserveNegative) |
int |
capacity() |
void |
ensureCapacity(int capacity) |
int |
size() |
byte[] |
subSequence(int start,
int end) |
byte[] |
toByteArray() |
String |
toString() |
void |
truncate(int size) |
public ByteBuilder()
public ByteBuilder(int capacity)
public ByteBuilder(byte[] array)
public void ensureCapacity(int capacity)
public int capacity()
public int size()
public void truncate(int size)
public byte[] subSequence(int start, int end)
public byte[] toByteArray()
public ByteBuilder append(byte value)
public ByteBuilder append(byte[] value)
public ByteBuilder append(byte[] value, int offset, int len)
public ByteBuilder append(char value)
public ByteBuilder append(char[] value)
public ByteBuilder append(char[] value, int offset, int len)
public ByteBuilder append(boolean value)
public ByteBuilder append(short value)
public ByteBuilder append(int value)
public ByteBuilder append(long value)
public ByteBuilder append(float value)
public ByteBuilder append(double value)
public ByteBuilder append(Object value)
public ByteBuilder append(String value)
public ByteBuilder append(String value, Charset charset)
public ByteBuilder append(StringBuffer value)
public ByteBuilder append(StringBuffer value, Charset charset)
public ByteBuilder append(ByteBuilder value)
public ByteBuilder appendSpecial(long value, int length, boolean preserveNegative)