- toBytes
Direct encoding of a String into an array.
- toString
Utility method as toString(byte[]).
- getCharset
Returns the Charset instance for UTF-8
- byteCount
Count the number of bytes needed to represent a given sequence of 16-bit char
values as a UTF-8 enco
- calculateBytePositions
Returns an integer array the length as the input string plus one. For every
index in the array, the
- calculateStringPositions
Returns an array of the same length as the input array plus one. For every index
in the array, the c
- codePointAsUtf8Length
Return the number of octets needed to encode a valid Unicode codepoint as UTF-8.
- encode
Encode a valid Unicode codepoint as a sequence of UTF-8 bytes into an array.
- firstByte
- getNewEncoder
Create a new UTF-8 encoder.
- toAsciiBytes
- toBytesAscii
If String is purely ascii 7bit it will encode it as a byte array.