| java.lang.Object org.mortbay.util.Utf8StringBuffer
Utf8StringBuffer | public class Utf8StringBuffer (Code) | | UTF-8 StringBuffer.
This class wraps a standard
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
Utf8StringBuffer.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
|
Utf8StringBuffer | Utf8StringBuffer()(Code) | | |
Utf8StringBuffer | Utf8StringBuffer(int capacity)(Code) | | |
append | public void append(byte[] b, int offset, int length)(Code) | | |
append | public void append(byte b)(Code) | | |
isError | public boolean isError()(Code) | | True if there are non UTF-8 characters or incomplete UTF-8 characters in the buffer. |
length | public int length()(Code) | | |
reset | public void reset()(Code) | | |
|
|