public class LatinStringEncoding extends BuiltInStringEncoding
| Constructor and Description |
|---|
LatinStringEncoding() |
| Modifier and Type | Method and Description |
|---|---|
protected LatinStringIO |
createStringIo(StringEncoding encoding) |
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.
|
encodingByteForEncoding, stringIoForEncodingpublic 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 arraypublic byte[] encode(java.lang.String str)
StringEncodingstr - the string to encodeprotected LatinStringIO createStringIo(StringEncoding encoding)
createStringIo in class BuiltInStringEncoding