public interface Encoding
Encoding implementations need to be thread-safe.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decodeFromCharset(byte[] in)
Decodes the supplied byte array to a String.
|
java.lang.String |
decodeFromCharset(byte[] in,
int offset,
int length)
Decodes a part of the supplied byte array to a String.
|
byte[] |
encodeToCharset(java.lang.String in)
Encodes the supplied String to bytes in this encoding.
|
java.lang.String |
getCharsetName() |
Encoding |
withTranslation(CharacterTranslator translator)
Deprecated.
To be removed in Jaybird 4
|
byte[] encodeToCharset(java.lang.String in)
in
- String to encodejava.lang.String decodeFromCharset(byte[] in)
in
- byte array to decodejava.lang.String decodeFromCharset(byte[] in, int offset, int length)
in
- byte array to decodeoffset
- Offset into the byte arraylength
- Length in bytes to decode@Deprecated Encoding withTranslation(CharacterTranslator translator)
Encoding
that applies the specified character translation.translator
- The translation to applytranslator
is null
java.lang.String getCharsetName()
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.