public class UTF8StringEncoding extends BuiltInStringEncoding
| Constructor and Description |
|---|
UTF8StringEncoding() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decode(byte[] bytes,
int start,
int length)
called when a byte array is to be decoded to a string.
|
byte[] |
encode(java.lang.String str)
called when a string is to be encoded to a byte array.
|
createStringIo, encodingByteForEncoding, stringIoForEncodingpublic byte[] encode(java.lang.String str)
StringEncodingstr - the string to encodepublic java.lang.String decode(byte[] bytes,
int start,
int length)
StringEncodingbytes - the byte arraystart - the start offset in the byte arraylength - the length of the encoded string in the byte array