java.lang.StringBuffer and provides methods to append
UTF-8 encoded bytes, that are converted into characters.
This class is stateful and up to 6 calls to append(byte) may be needed before
state a character is appended to the string buffer.
The UTF-8 decoding is done by this class and no additional buffers or Readers are used.
The UTF-8 code was inspired by http://javolution.org
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv StringBuilder | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public StringBuilder | |
| public int | |
| public void | |
| public String |
| _bits | back to summary |
|---|---|
| pack-priv int _bits | |
| _buffer | back to summary |
|---|---|
| pack-priv StringBuilder _buffer | |
| _more | back to summary |
|---|---|
| pack-priv int _more | |
| Utf8StringBuilder | back to summary |
|---|---|
| public Utf8StringBuilder() | |
| Utf8StringBuilder | back to summary |
|---|---|
| public Utf8StringBuilder(int capacity) | |
| append | back to summary |
|---|---|
| public void append(byte[] b, int offset, int length) | |
| append | back to summary |
|---|---|
| public void append(byte b) | |
| getStringBuilder | back to summary |
|---|---|
| public StringBuilder getStringBuilder() | |
| length | back to summary |
|---|---|
| public int length() | |
| reset | back to summary |
|---|---|
| public void reset() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |