public interface EncodingDefinition
Modifier and Type | Method and Description |
---|---|
Encoding |
getEncoding()
Gets the
Encoding based on this definition. |
int |
getFirebirdCharacterSetId() |
java.lang.String |
getFirebirdEncodingName() |
java.nio.charset.Charset |
getJavaCharset() |
java.lang.String |
getJavaEncodingName() |
int |
getMaxBytesPerChar() |
boolean |
isFirebirdOnly()
Can (or should) this encoding be used for reverse mapping from Java to Firebird.
|
boolean |
isInformationOnly()
Can this implementation create an
Encoding instance, or does it provide information only (eg about
unsupported character sets) |
int getMaxBytesPerChar()
java.lang.String getJavaEncodingName()
java.nio.charset.Charset getJavaCharset()
Charset
for this encodingjava.lang.String getFirebirdEncodingName()
int getFirebirdCharacterSetId()
boolean isFirebirdOnly()
The best example of this is the Firebird character set UNICODE-FSS
which maps to the
Java character set UTF-8
, but when Java character setUTF-8
is requested, Jaybird
should (in general) map to Firebird character set UTF8
.
true
when this encoding maps from Java to Firebird, false
otherwiseboolean isInformationOnly()
Encoding
instance, or does it provide information only (eg about
unsupported character sets)true
if this EncodingDefinition only provides information, and is not capable of building a
concrete implementation.Encoding getEncoding()
Encoding
based on this definition.
Implementations can return the same instance on every call, or create a new one each time this method is called
null
if this is an information only EncodingDefinitionisInformationOnly()
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.