public class ByteArrayBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
protected static byte[] |
FALSE |
protected static byte[] |
TRUE |
| Constructor and Description |
|---|
ByteArrayBuilder() |
ByteArrayBuilder(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayBuilder |
append(boolean b) |
ByteArrayBuilder |
append(byte b) |
ByteArrayBuilder |
append(byte[] b) |
ByteArrayBuilder |
append(byte[] b,
int offset,
int length) |
ByteArrayBuilder |
append(ByteBuffer bb,
int length) |
ByteArrayBuilder |
append(char c) |
ByteArrayBuilder |
append(int n) |
ByteArrayBuilder |
append(long n) |
ByteArrayBuilder |
append(String s) |
ByteArrayBuilder |
appendCodePoint(int c) |
ByteArrayBuilder |
appendHex(int n) |
ByteArrayBuilder |
appendHex(long n) |
byte[] |
buffer() |
byte |
byteAt(int index) |
int |
capacity() |
void |
crop(int offset) |
int |
length() |
void |
setLength(int newCount) |
byte[] |
toBytes() |
String |
toString() |
byte[] |
trim() |
protected static final byte[] TRUE
protected static final byte[] FALSE
protected byte[] buf
protected int count
public ByteArrayBuilder()
public ByteArrayBuilder(int capacity)
public final byte[] buffer()
public final int length()
public final void setLength(int newCount)
public final int capacity()
public final byte byteAt(int index)
public final void crop(int offset)
public final byte[] trim()
public final byte[] toBytes()
public final ByteArrayBuilder append(byte b)
public final ByteArrayBuilder append(byte[] b)
public final ByteArrayBuilder append(byte[] b, int offset, int length)
public final ByteArrayBuilder append(ByteBuffer bb, int length)
public final ByteArrayBuilder append(String s)
public final ByteArrayBuilder append(boolean b)
public final ByteArrayBuilder append(char c)
public final ByteArrayBuilder append(int n)
public final ByteArrayBuilder append(long n)
public final ByteArrayBuilder appendCodePoint(int c)
public final ByteArrayBuilder appendHex(int n)
public final ByteArrayBuilder appendHex(long n)
Copyright © 2019. All rights reserved.