All Packages Class Hierarchy This Package Previous Next Index
Class oracle.sql.CharacterSet
java.lang.Object
|
+----oracle.sql.CharacterSet
- public abstract class CharacterSet
- extends Object
Encapsulates methods and attributes of the character sets defined by Oracle.
Mostly this means conversions between representations. A better name for
this class would probably be CharacterRepresentation, but "character set" is
how all the Oracle documentation refers to these things.
There are no public constructors. To create a CharacterSet use
oracle.sql.CharacterSetFactory.
There is no notion of "unsupported" character set. CharacterSet's can be
created with any oracleId. However, there is a notion of unsupported
conversions
And the current implementation is limited to the small
number of character sets for which constants are defined in the class
When there are two variants of an operation (e.g. convert vs. convertUnshared)
the plain version is the fast (but possibly unsafe) one.
The descriptions of methods in this class use the phrase
"bytes in oracleId representation". What this means is that the bytes
can be interpreted as a sequence of characters in the character set defined
by oracleId. Both what characters are available and how they are represented
as sequences of bytes is determined by oracleId.
- See Also:
- CharacterSetFactory
-
AL24UTFFSS_CHARSET
-
-
AR8ADOS710_CHARSET
-
-
AR8ADOS710T_CHARSET
-
-
AR8ADOS720_CHARSET
-
-
AR8ADOS720T_CHARSET
-
-
AR8APTEC715_CHARSET
-
-
AR8APTEC715T_CHARSET
-
-
AR8ARABICMAC_CHARSET
-
-
AR8ARABICMACS_CHARSET
-
-
AR8ARABICMACT_CHARSET
-
-
AR8ASMO708PLUS_CHARSET
-
-
AR8ASMO8X_CHARSET
-
-
AR8EBCDICX_CHARSET
-
-
AR8HPARABIC8T_CHARSET
-
-
AR8ISO8859P6_CHARSET
-
-
AR8MSAWIN_CHARSET
-
-
AR8MUSSAD768_CHARSET
-
-
AR8MUSSAD768T_CHARSET
-
-
AR8NAFITHA711_CHARSET
-
-
AR8NAFITHA711T_CHARSET
-
-
AR8NAFITHA721_CHARSET
-
-
AR8NAFITHA721T_CHARSET
-
-
AR8SAKHR706_CHARSET
-
-
AR8SAKHR707_CHARSET
-
-
AR8SAKHR707T_CHARSET
-
-
AR8XBASIC_CHARSET
-
-
ASCII_CHARSET
-
-
BG8MSWIN_CHARSET
-
-
BG8PC437S_CHARSET
-
-
BLT8CP921_CHARSET
-
-
BLT8EBCDIC1112_CHARSET
-
-
BLT8MSWIN1257_CHARSET
-
-
BLT8PC775_CHARSET
-
-
BN8BSCII_CHARSET
-
-
CDN8PC863_CHARSET
-
-
CH7DEC_CHARSET
-
-
CL8BS2000_CHARSET
-
-
CL8EBCDIC1025_CHARSET
-
-
CL8EBCDIC1025X_CHARSET
-
-
CL8ISO8859P5_CHARSET
-
-
CL8KOI8R_CHARSET
-
-
CL8MACCYRILLIC_CHARSET
-
-
CL8MACCYRILLICS_CHARSET
-
-
CL8MSWIN1251_CHARSET
-
-
D7DEC_CHARSET
-
-
D7SIEMENS9780X_CHARSET
-
-
D8BS2000_CHARSET
-
-
D8EBCDIC273_CHARSET
-
-
DEFAULT_CHARSET
- Special value.
-
DK7SIEMENS9780X_CHARSET
-
-
DK8BS2000_CHARSET
-
-
DK8EBCDIC277_CHARSET
-
-
E7DEC_CHARSET
-
-
E7SIEMENS9780X_CHARSET
-
-
E8BS2000_CHARSET
-
-
EE8EBCDIC870_CHARSET
-
-
EE8ISO8859P2_CHARSET
-
-
EE8MACCE_CHARSET
-
-
EE8MACCES_CHARSET
-
-
EE8MACCROATIAN_CHARSET
-
-
EE8MACCROATIANS_CHARSET
-
-
EE8MSWIN1250_CHARSET
-
-
EE8PC852_CHARSET
-
-
EEC8EUROASCI_CHARSET
-
-
EEC8EUROPA3_CHARSET
-
-
EL8DEC_CHARSET
-
-
EL8EBCDIC875_CHARSET
-
-
EL8GCOS7_CHARSET
-
-
EL8ISO8859P7_CHARSET
-
-
EL8MACGREEK_CHARSET
-
-
EL8MACGREEKS_CHARSET
-
-
EL8MSWIN1253_CHARSET
-
-
EL8PC437S_CHARSET
-
-
EL8PC737_CHARSET
-
-
EL8PC851_CHARSET
-
-
EL8PC869_CHARSET
-
-
ET8MSWIN923_CHARSET
-
-
F7DEC_CHARSET
-
-
F7SIEMENS9780X_CHARSET
-
-
F8BS2000_CHARSET
-
-
F8EBCDIC297_CHARSET
-
-
HU8ABMOD_CHARSET
-
-
HU8CWI2_CHARSET
-
-
I7DEC_CHARSET
-
-
I7SIEMENS9780X_CHARSET
-
-
I8EBCDIC280_CHARSET
-
-
IN8ISCII_CHARSET
-
-
IS8MACICELANDIC_CHARSET
-
-
IS8MACICELANDICS_CHARSET
-
-
IS8PC861_CHARSET
-
-
ISO_LATIN_1_CHARSET
-
-
IW7IS960_CHARSET
-
-
IW8EBCDIC1086_CHARSET
-
-
IW8EBCDIC424_CHARSET
-
-
IW8ISO8859P8_CHARSET
-
-
IW8MACHEBREW_CHARSET
-
-
IW8MACHEBREWS_CHARSET
-
-
IW8MSWIN1255_CHARSET
-
-
IW8PC1507_CHARSET
-
-
JA16DBCS_CHARSET
-
-
JA16DBCSFIXED_CHARSET
-
-
JA16EBCDIC930_CHARSET
-
-
JA16EUC_CHARSET
-
-
JA16EUCFIXED_CHARSET
-
-
JA16EUCYEN_CHARSET
-
-
JA16MACSJIS_CHARSET
-
-
JA16SJIS_CHARSET
-
-
JA16SJISFIXED_CHARSET
-
-
JA16SJISYEN_CHARSET
-
-
JA16TSTSET2_CHARSET
-
-
JA16TSTSET_CHARSET
-
-
JA16VMS_CHARSET
-
-
KO16DBCS_CHARSET
-
-
KO16DBCSFIXED_CHARSET
-
-
KO16KSC5601_CHARSET
-
-
KO16KSC5601FIXED_CHARSET
-
-
KO16KSCCS_CHARSET
-
-
KO16MSWIN949_CHARSET
-
-
KO16TSTSET_CHARSET
-
-
LA8ISO6937_CHARSET
-
-
LA8PASSPORT_CHARSET
-
-
LT8MSWIN921_CHARSET
-
-
LT8PC772_CHARSET
-
-
LT8PC774_CHARSET
-
-
LV8PC1117_CHARSET
-
-
LV8PC8LR_CHARSET
-
-
LV8RST104090_CHARSET
-
-
N7SIEMENS9780X_CHARSET
-
-
N8PC865_CHARSET
-
-
NDK7DEC_CHARSET
-
-
NE8ISO8859P10_CHARSET
-
-
NEE8ISO8859P4_CHARSET
-
-
NL7DEC_CHARSET
-
-
RU8BESTA_CHARSET
-
-
RU8PC855_CHARSET
-
-
RU8PC866_CHARSET
-
-
S7DEC_CHARSET
-
-
S7SIEMENS9780X_CHARSET
-
-
S8BS2000_CHARSET
-
-
S8EBCDIC278_CHARSET
-
-
SE8ISO8859P3_CHARSET
-
-
SF7ASCII_CHARSET
-
-
SF7DEC_CHARSET
-
-
TH8MACTHAI_CHARSET
-
-
TH8MACTHAIS_CHARSET
-
-
TH8TISASCII_CHARSET
-
-
TH8TISEBCDIC_CHARSET
-
-
TR7DEC_CHARSET
-
-
TR8DEC_CHARSET
-
-
TR8EBCDIC1026_CHARSET
-
-
TR8MACTURKISH_CHARSET
-
-
TR8MACTURKISHS_CHARSET
-
-
TR8MSWIN1254_CHARSET
-
-
TR8PC857_CHARSET
-
-
UNICODE_1_CHARSET
-
-
UNICODE_2_CHARSET
- This unicode is a "true UTF8".
-
US16TSTFIXED_CHARSET
-
-
US7ASCII_CHARSET
-
-
US8BS2000_CHARSET
-
-
US8ICL_CHARSET
-
-
US8NOOP_CHARSET
-
-
US8PC437_CHARSET
-
-
UTF8_CHARSET
-
-
VN8MSWIN1258_CHARSET
-
-
VN8VN3_CHARSET
-
-
WE8BS2000_CHARSET
-
-
WE8BS2000L5_CHARSET
-
-
WE8DEC_CHARSET
-
-
WE8DECTST_CHARSET
-
-
WE8DG_CHARSET
-
-
WE8EBCDIC1047_CHARSET
-
-
WE8EBCDIC284_CHARSET
-
-
WE8EBCDIC285_CHARSET
-
-
WE8EBCDIC37_CHARSET
-
-
WE8EBCDIC37C_CHARSET
-
-
WE8EBCDIC500_CHARSET
-
-
WE8EBCDIC500C_CHARSET
-
-
WE8EBCDIC871_CHARSET
-
-
WE8GCOS7_CHARSET
-
-
WE8HP_CHARSET
-
-
WE8ICL_CHARSET
-
-
WE8ISO8859P1_CHARSET
-
-
WE8ISO8859P9_CHARSET
-
-
WE8ISOICLUK_CHARSET
-
-
WE8MACROMAN8_CHARSET
-
-
WE8MACROMAN8S_CHARSET
-
-
WE8MSWIN1252_CHARSET
-
-
WE8NCR4970_CHARSET
-
-
WE8NEXTSTEP_CHARSET
-
-
WE8PC850_CHARSET
-
-
WE8PC860_CHARSET
-
-
WE8ROMAN8_CHARSET
-
-
YUG7ASCII_CHARSET
-
-
ZHS16CGB231280_CHARSET
-
-
ZHS16CGB231280FIXED_CHARSET
-
-
ZHS16DBCS_CHARSET
-
-
ZHS16DBCSFIXED_CHARSET
-
-
ZHS16GBK_CHARSET
-
-
ZHS16GBKFIXED_CHARSET
-
-
ZHS16MACCGB231280_CHARSET
-
-
ZHT16BIG5_CHARSET
-
-
ZHT16BIG5FIXED_CHARSET
-
-
ZHT16CCDC_CHARSET
-
-
ZHT16DBCS_CHARSET
-
-
ZHT16DBCSFIXED_CHARSET
-
-
ZHT16DBT_CHARSET
-
-
ZHT16MSWIN950_CHARSET
-
-
ZHT32EUC_CHARSET
-
-
ZHT32EUCFIXED_CHARSET
-
-
ZHT32SOPS_CHARSET
-
-
ZHT32TRIS_CHARSET
-
-
ZHT32TRISFIXED_CHARSET
-
-
convert(CharacterSet, byte[], int, int)
- Converts bytes in some representation to oracleId representation.
-
convert(String)
- Convert a String to bytes in oracleId representation.
-
convertUnshared(CharacterSet, byte[], int, int)
- Converts bytes in some representation to oracleId representation.
-
convertWithReplacement(String)
- Convert a String to bytes in oracleId representation.
-
equals(Object)
- Two CharacterSet's are equal when their oracleId's are equal
-
getOracleId()
- The integer that identifies the character set.
-
getRatioTo(CharacterSet)
- I have no idea what this is supposed to return -- jschwarz.
-
hashCode()
- Implements a hash based on oracleId
-
isConvertibleFrom(CharacterSet)
- Are conversions supported.
-
isLossyFrom(CharacterSet)
- A conversion looses information if the mapping is not invertible.
-
make(int)
- Factory.
-
toString()
- This should be the official name of the character set.
-
toString(byte[], int, int)
- Convert bytes in oracleId representation to a String.
-
toStringWithReplacement(byte[], int, int)
- Convert bytes in oracleId representation to a String.
DEFAULT_CHARSET
public static final short DEFAULT_CHARSET
- Special value.
What character set it returned depends on where
this class running.
When run in the server this is the
database character set.
When run in a client ...
ASCII_CHARSET
public static final short ASCII_CHARSET
ISO_LATIN_1_CHARSET
public static final short ISO_LATIN_1_CHARSET
UNICODE_1_CHARSET
public static final short UNICODE_1_CHARSET
US7ASCII_CHARSET
public static final short US7ASCII_CHARSET
WE8DEC_CHARSET
public static final short WE8DEC_CHARSET
WE8HP_CHARSET
public static final short WE8HP_CHARSET
US8PC437_CHARSET
public static final short US8PC437_CHARSET
WE8EBCDIC37_CHARSET
public static final short WE8EBCDIC37_CHARSET
WE8EBCDIC500_CHARSET
public static final short WE8EBCDIC500_CHARSET
WE8EBCDIC285_CHARSET
public static final short WE8EBCDIC285_CHARSET
WE8PC850_CHARSET
public static final short WE8PC850_CHARSET
D7DEC_CHARSET
public static final short D7DEC_CHARSET
F7DEC_CHARSET
public static final short F7DEC_CHARSET
S7DEC_CHARSET
public static final short S7DEC_CHARSET
E7DEC_CHARSET
public static final short E7DEC_CHARSET
SF7ASCII_CHARSET
public static final short SF7ASCII_CHARSET
NDK7DEC_CHARSET
public static final short NDK7DEC_CHARSET
I7DEC_CHARSET
public static final short I7DEC_CHARSET
NL7DEC_CHARSET
public static final short NL7DEC_CHARSET
CH7DEC_CHARSET
public static final short CH7DEC_CHARSET
YUG7ASCII_CHARSET
public static final short YUG7ASCII_CHARSET
SF7DEC_CHARSET
public static final short SF7DEC_CHARSET
TR7DEC_CHARSET
public static final short TR7DEC_CHARSET
IW7IS960_CHARSET
public static final short IW7IS960_CHARSET
IN8ISCII_CHARSET
public static final short IN8ISCII_CHARSET
WE8ISO8859P1_CHARSET
public static final short WE8ISO8859P1_CHARSET
EE8ISO8859P2_CHARSET
public static final short EE8ISO8859P2_CHARSET
SE8ISO8859P3_CHARSET
public static final short SE8ISO8859P3_CHARSET
NEE8ISO8859P4_CHARSET
public static final short NEE8ISO8859P4_CHARSET
CL8ISO8859P5_CHARSET
public static final short CL8ISO8859P5_CHARSET
AR8ISO8859P6_CHARSET
public static final short AR8ISO8859P6_CHARSET
EL8ISO8859P7_CHARSET
public static final short EL8ISO8859P7_CHARSET
IW8ISO8859P8_CHARSET
public static final short IW8ISO8859P8_CHARSET
WE8ISO8859P9_CHARSET
public static final short WE8ISO8859P9_CHARSET
NE8ISO8859P10_CHARSET
public static final short NE8ISO8859P10_CHARSET
TH8TISASCII_CHARSET
public static final short TH8TISASCII_CHARSET
TH8TISEBCDIC_CHARSET
public static final short TH8TISEBCDIC_CHARSET
BN8BSCII_CHARSET
public static final short BN8BSCII_CHARSET
VN8VN3_CHARSET
public static final short VN8VN3_CHARSET
VN8MSWIN1258_CHARSET
public static final short VN8MSWIN1258_CHARSET
WE8NEXTSTEP_CHARSET
public static final short WE8NEXTSTEP_CHARSET
AR8ASMO708PLUS_CHARSET
public static final short AR8ASMO708PLUS_CHARSET
AR8EBCDICX_CHARSET
public static final short AR8EBCDICX_CHARSET
AR8XBASIC_CHARSET
public static final short AR8XBASIC_CHARSET
EL8DEC_CHARSET
public static final short EL8DEC_CHARSET
TR8DEC_CHARSET
public static final short TR8DEC_CHARSET
WE8EBCDIC37C_CHARSET
public static final short WE8EBCDIC37C_CHARSET
WE8EBCDIC500C_CHARSET
public static final short WE8EBCDIC500C_CHARSET
IW8EBCDIC424_CHARSET
public static final short IW8EBCDIC424_CHARSET
TR8EBCDIC1026_CHARSET
public static final short TR8EBCDIC1026_CHARSET
WE8EBCDIC871_CHARSET
public static final short WE8EBCDIC871_CHARSET
WE8EBCDIC284_CHARSET
public static final short WE8EBCDIC284_CHARSET
WE8EBCDIC1047_CHARSET
public static final short WE8EBCDIC1047_CHARSET
EEC8EUROASCI_CHARSET
public static final short EEC8EUROASCI_CHARSET
EEC8EUROPA3_CHARSET
public static final short EEC8EUROPA3_CHARSET
LA8PASSPORT_CHARSET
public static final short LA8PASSPORT_CHARSET
BG8PC437S_CHARSET
public static final short BG8PC437S_CHARSET
EE8PC852_CHARSET
public static final short EE8PC852_CHARSET
RU8PC866_CHARSET
public static final short RU8PC866_CHARSET
RU8BESTA_CHARSET
public static final short RU8BESTA_CHARSET
IW8PC1507_CHARSET
public static final short IW8PC1507_CHARSET
RU8PC855_CHARSET
public static final short RU8PC855_CHARSET
TR8PC857_CHARSET
public static final short TR8PC857_CHARSET
CL8MACCYRILLIC_CHARSET
public static final short CL8MACCYRILLIC_CHARSET
CL8MACCYRILLICS_CHARSET
public static final short CL8MACCYRILLICS_CHARSET
WE8PC860_CHARSET
public static final short WE8PC860_CHARSET
IS8PC861_CHARSET
public static final short IS8PC861_CHARSET
EE8MACCES_CHARSET
public static final short EE8MACCES_CHARSET
EE8MACCROATIANS_CHARSET
public static final short EE8MACCROATIANS_CHARSET
TR8MACTURKISHS_CHARSET
public static final short TR8MACTURKISHS_CHARSET
IS8MACICELANDICS_CHARSET
public static final short IS8MACICELANDICS_CHARSET
EL8MACGREEKS_CHARSET
public static final short EL8MACGREEKS_CHARSET
IW8MACHEBREWS_CHARSET
public static final short IW8MACHEBREWS_CHARSET
EE8MSWIN1250_CHARSET
public static final short EE8MSWIN1250_CHARSET
CL8MSWIN1251_CHARSET
public static final short CL8MSWIN1251_CHARSET
ET8MSWIN923_CHARSET
public static final short ET8MSWIN923_CHARSET
BG8MSWIN_CHARSET
public static final short BG8MSWIN_CHARSET
EL8MSWIN1253_CHARSET
public static final short EL8MSWIN1253_CHARSET
IW8MSWIN1255_CHARSET
public static final short IW8MSWIN1255_CHARSET
LT8MSWIN921_CHARSET
public static final short LT8MSWIN921_CHARSET
TR8MSWIN1254_CHARSET
public static final short TR8MSWIN1254_CHARSET
WE8MSWIN1252_CHARSET
public static final short WE8MSWIN1252_CHARSET
BLT8MSWIN1257_CHARSET
public static final short BLT8MSWIN1257_CHARSET
D8EBCDIC273_CHARSET
public static final short D8EBCDIC273_CHARSET
I8EBCDIC280_CHARSET
public static final short I8EBCDIC280_CHARSET
DK8EBCDIC277_CHARSET
public static final short DK8EBCDIC277_CHARSET
S8EBCDIC278_CHARSET
public static final short S8EBCDIC278_CHARSET
EE8EBCDIC870_CHARSET
public static final short EE8EBCDIC870_CHARSET
CL8EBCDIC1025_CHARSET
public static final short CL8EBCDIC1025_CHARSET
F8EBCDIC297_CHARSET
public static final short F8EBCDIC297_CHARSET
IW8EBCDIC1086_CHARSET
public static final short IW8EBCDIC1086_CHARSET
CL8EBCDIC1025X_CHARSET
public static final short CL8EBCDIC1025X_CHARSET
N8PC865_CHARSET
public static final short N8PC865_CHARSET
BLT8CP921_CHARSET
public static final short BLT8CP921_CHARSET
LV8PC1117_CHARSET
public static final short LV8PC1117_CHARSET
LV8PC8LR_CHARSET
public static final short LV8PC8LR_CHARSET
BLT8EBCDIC1112_CHARSET
public static final short BLT8EBCDIC1112_CHARSET
LV8RST104090_CHARSET
public static final short LV8RST104090_CHARSET
CL8KOI8R_CHARSET
public static final short CL8KOI8R_CHARSET
BLT8PC775_CHARSET
public static final short BLT8PC775_CHARSET
F7SIEMENS9780X_CHARSET
public static final short F7SIEMENS9780X_CHARSET
E7SIEMENS9780X_CHARSET
public static final short E7SIEMENS9780X_CHARSET
S7SIEMENS9780X_CHARSET
public static final short S7SIEMENS9780X_CHARSET
DK7SIEMENS9780X_CHARSET
public static final short DK7SIEMENS9780X_CHARSET
N7SIEMENS9780X_CHARSET
public static final short N7SIEMENS9780X_CHARSET
I7SIEMENS9780X_CHARSET
public static final short I7SIEMENS9780X_CHARSET
D7SIEMENS9780X_CHARSET
public static final short D7SIEMENS9780X_CHARSET
WE8GCOS7_CHARSET
public static final short WE8GCOS7_CHARSET
EL8GCOS7_CHARSET
public static final short EL8GCOS7_CHARSET
US8BS2000_CHARSET
public static final short US8BS2000_CHARSET
D8BS2000_CHARSET
public static final short D8BS2000_CHARSET
F8BS2000_CHARSET
public static final short F8BS2000_CHARSET
E8BS2000_CHARSET
public static final short E8BS2000_CHARSET
DK8BS2000_CHARSET
public static final short DK8BS2000_CHARSET
S8BS2000_CHARSET
public static final short S8BS2000_CHARSET
WE8BS2000_CHARSET
public static final short WE8BS2000_CHARSET
CL8BS2000_CHARSET
public static final short CL8BS2000_CHARSET
WE8BS2000L5_CHARSET
public static final short WE8BS2000L5_CHARSET
WE8DG_CHARSET
public static final short WE8DG_CHARSET
WE8NCR4970_CHARSET
public static final short WE8NCR4970_CHARSET
WE8ROMAN8_CHARSET
public static final short WE8ROMAN8_CHARSET
EE8MACCE_CHARSET
public static final short EE8MACCE_CHARSET
EE8MACCROATIAN_CHARSET
public static final short EE8MACCROATIAN_CHARSET
TR8MACTURKISH_CHARSET
public static final short TR8MACTURKISH_CHARSET
IS8MACICELANDIC_CHARSET
public static final short IS8MACICELANDIC_CHARSET
EL8MACGREEK_CHARSET
public static final short EL8MACGREEK_CHARSET
IW8MACHEBREW_CHARSET
public static final short IW8MACHEBREW_CHARSET
US8ICL_CHARSET
public static final short US8ICL_CHARSET
WE8ICL_CHARSET
public static final short WE8ICL_CHARSET
WE8ISOICLUK_CHARSET
public static final short WE8ISOICLUK_CHARSET
WE8MACROMAN8_CHARSET
public static final short WE8MACROMAN8_CHARSET
WE8MACROMAN8S_CHARSET
public static final short WE8MACROMAN8S_CHARSET
TH8MACTHAI_CHARSET
public static final short TH8MACTHAI_CHARSET
TH8MACTHAIS_CHARSET
public static final short TH8MACTHAIS_CHARSET
HU8CWI2_CHARSET
public static final short HU8CWI2_CHARSET
EL8PC437S_CHARSET
public static final short EL8PC437S_CHARSET
EL8EBCDIC875_CHARSET
public static final short EL8EBCDIC875_CHARSET
EL8PC737_CHARSET
public static final short EL8PC737_CHARSET
LT8PC772_CHARSET
public static final short LT8PC772_CHARSET
LT8PC774_CHARSET
public static final short LT8PC774_CHARSET
EL8PC869_CHARSET
public static final short EL8PC869_CHARSET
EL8PC851_CHARSET
public static final short EL8PC851_CHARSET
CDN8PC863_CHARSET
public static final short CDN8PC863_CHARSET
HU8ABMOD_CHARSET
public static final short HU8ABMOD_CHARSET
AR8ASMO8X_CHARSET
public static final short AR8ASMO8X_CHARSET
AR8NAFITHA711T_CHARSET
public static final short AR8NAFITHA711T_CHARSET
AR8SAKHR707T_CHARSET
public static final short AR8SAKHR707T_CHARSET
AR8MUSSAD768T_CHARSET
public static final short AR8MUSSAD768T_CHARSET
AR8ADOS710T_CHARSET
public static final short AR8ADOS710T_CHARSET
AR8ADOS720T_CHARSET
public static final short AR8ADOS720T_CHARSET
AR8APTEC715T_CHARSET
public static final short AR8APTEC715T_CHARSET
AR8NAFITHA721T_CHARSET
public static final short AR8NAFITHA721T_CHARSET
AR8HPARABIC8T_CHARSET
public static final short AR8HPARABIC8T_CHARSET
AR8NAFITHA711_CHARSET
public static final short AR8NAFITHA711_CHARSET
AR8SAKHR707_CHARSET
public static final short AR8SAKHR707_CHARSET
AR8MUSSAD768_CHARSET
public static final short AR8MUSSAD768_CHARSET
AR8ADOS710_CHARSET
public static final short AR8ADOS710_CHARSET
AR8ADOS720_CHARSET
public static final short AR8ADOS720_CHARSET
AR8APTEC715_CHARSET
public static final short AR8APTEC715_CHARSET
AR8MSAWIN_CHARSET
public static final short AR8MSAWIN_CHARSET
AR8NAFITHA721_CHARSET
public static final short AR8NAFITHA721_CHARSET
AR8SAKHR706_CHARSET
public static final short AR8SAKHR706_CHARSET
AR8ARABICMAC_CHARSET
public static final short AR8ARABICMAC_CHARSET
AR8ARABICMACS_CHARSET
public static final short AR8ARABICMACS_CHARSET
AR8ARABICMACT_CHARSET
public static final short AR8ARABICMACT_CHARSET
LA8ISO6937_CHARSET
public static final short LA8ISO6937_CHARSET
US8NOOP_CHARSET
public static final short US8NOOP_CHARSET
WE8DECTST_CHARSET
public static final short WE8DECTST_CHARSET
JA16VMS_CHARSET
public static final short JA16VMS_CHARSET
JA16EUC_CHARSET
public static final short JA16EUC_CHARSET
JA16EUCYEN_CHARSET
public static final short JA16EUCYEN_CHARSET
JA16SJIS_CHARSET
public static final short JA16SJIS_CHARSET
JA16DBCS_CHARSET
public static final short JA16DBCS_CHARSET
JA16SJISYEN_CHARSET
public static final short JA16SJISYEN_CHARSET
JA16EBCDIC930_CHARSET
public static final short JA16EBCDIC930_CHARSET
JA16MACSJIS_CHARSET
public static final short JA16MACSJIS_CHARSET
KO16KSC5601_CHARSET
public static final short KO16KSC5601_CHARSET
KO16DBCS_CHARSET
public static final short KO16DBCS_CHARSET
KO16KSCCS_CHARSET
public static final short KO16KSCCS_CHARSET
KO16MSWIN949_CHARSET
public static final short KO16MSWIN949_CHARSET
ZHS16CGB231280_CHARSET
public static final short ZHS16CGB231280_CHARSET
ZHS16MACCGB231280_CHARSET
public static final short ZHS16MACCGB231280_CHARSET
ZHS16GBK_CHARSET
public static final short ZHS16GBK_CHARSET
ZHS16DBCS_CHARSET
public static final short ZHS16DBCS_CHARSET
ZHT32EUC_CHARSET
public static final short ZHT32EUC_CHARSET
ZHT32SOPS_CHARSET
public static final short ZHT32SOPS_CHARSET
ZHT16DBT_CHARSET
public static final short ZHT16DBT_CHARSET
ZHT32TRIS_CHARSET
public static final short ZHT32TRIS_CHARSET
ZHT16DBCS_CHARSET
public static final short ZHT16DBCS_CHARSET
ZHT16BIG5_CHARSET
public static final short ZHT16BIG5_CHARSET
ZHT16CCDC_CHARSET
public static final short ZHT16CCDC_CHARSET
ZHT16MSWIN950_CHARSET
public static final short ZHT16MSWIN950_CHARSET
AL24UTFFSS_CHARSET
public static final short AL24UTFFSS_CHARSET
UTF8_CHARSET
public static final short UTF8_CHARSET
KO16TSTSET_CHARSET
public static final short KO16TSTSET_CHARSET
JA16TSTSET2_CHARSET
public static final short JA16TSTSET2_CHARSET
JA16TSTSET_CHARSET
public static final short JA16TSTSET_CHARSET
US16TSTFIXED_CHARSET
public static final short US16TSTFIXED_CHARSET
JA16EUCFIXED_CHARSET
public static final short JA16EUCFIXED_CHARSET
JA16SJISFIXED_CHARSET
public static final short JA16SJISFIXED_CHARSET
JA16DBCSFIXED_CHARSET
public static final short JA16DBCSFIXED_CHARSET
KO16KSC5601FIXED_CHARSET
public static final short KO16KSC5601FIXED_CHARSET
KO16DBCSFIXED_CHARSET
public static final short KO16DBCSFIXED_CHARSET
ZHS16CGB231280FIXED_CHARSET
public static final short ZHS16CGB231280FIXED_CHARSET
ZHS16GBKFIXED_CHARSET
public static final short ZHS16GBKFIXED_CHARSET
ZHS16DBCSFIXED_CHARSET
public static final short ZHS16DBCSFIXED_CHARSET
ZHT32EUCFIXED_CHARSET
public static final short ZHT32EUCFIXED_CHARSET
ZHT32TRISFIXED_CHARSET
public static final short ZHT32TRISFIXED_CHARSET
ZHT16DBCSFIXED_CHARSET
public static final short ZHT16DBCSFIXED_CHARSET
ZHT16BIG5FIXED_CHARSET
public static final short ZHT16BIG5FIXED_CHARSET
UNICODE_2_CHARSET
public static final short UNICODE_2_CHARSET
- This unicode is a "true UTF8". That means null
bytes can appear (unlike Java UTF8 where null bytes
are always represented by two non-null bytes
make
public static CharacterSet make(int oracleId)
- Factory.
A factory is used rather than a constructor because CharacterSet is abstract.
- Parameters:
- oracleId - the number of the Oracle character set.
A list of official Oracle character sets is maintained by ...
- Returns:
- CharacterSet for oracleId.
toString
public String toString()
- This should be the official name of the character set.
I don't know them so I just return a string containing the oracleId -- jschwarz
- Returns:
- the name of the character set
- Overrides:
- toString in class Object
isLossyFrom
public abstract boolean isLossyFrom(CharacterSet from)
- A conversion looses information if the mapping is not invertible.
(A mathematicial would say that the map of characters in from to this is
not injective.)
- Parameters:
- from - a CharacterSet being tested for compatibility with this CharacterSet.
- Returns:
- true if characters in the from character set can be
mapped uniquely to characters in oracleId representation.
isConvertibleFrom
public abstract boolean isConvertibleFrom(CharacterSet source)
- Are conversions supported.
- Parameters:
- source - a CharacterSet to inquire about
- Returns:
- true if conversion from source to oracleId is supported.
If it isn't supported attempts to convert will always throw exceptions.
getOracleId
public int getOracleId()
- The integer that identifies the character set.
getRatioTo
public int getRatioTo(CharacterSet to)
- I have no idea what this is supposed to return -- jschwarz.
equals
public boolean equals(Object rhs)
- Two CharacterSet's are equal when their oracleId's are equal
- Overrides:
- equals in class Object
hashCode
public int hashCode()
- Implements a hash based on oracleId
- Overrides:
- hashCode in class Object
toStringWithReplacement
public abstract String toStringWithReplacement(byte bytes[],
int offset,
int count)
- Convert bytes in oracleId representation to a String.
If a character has no Unicode representation the effect is unspecified.
The conversion might omit it, or replace it with a special character.
The preferred result is replacement by a single character, but it is
not guaranteed.
If the conversion isn't supported at all, the result may be a fixed
string.
- Parameters:
- bytes - a array containing characters represented in this character set.
- offset - the index of the first byte or the charcters
- count - the number of bytes to be converted.
- Returns:
- the String resulting from converting to UCS-2.
toString
public String toString(byte bytes[],
int offset,
int count) throws SQLException
- Convert bytes in oracleId representation to a String.
The difference between toStringInvertible and plain toString
is that toStringInvertible will throw an exception when toString
would make some replacement.
- Parameters:
- bytes - a array containing characters represented in this character set.
- offset - the index of the first byte or the charcters
- count - the number of bytes to be converted.
- Returns:
- the String resulting from converting to UCS-2.
- Throws: SQLException
- when conversion is not supported.
- Throws: SQLException
- when some character contained in bytes
has no Unicode equivalent.
convert
public abstract byte[] convert(String s) throws SQLException
- Convert a String to bytes in oracleId representation.
- Returns:
- an array containing the sequence of bytes in oracleId representation
that represent the sequence of Unicode characters
in String.
- Throws: SQLException
- when the oracleId does not support conversion
from Unicode.
- Throws: SQLException
- when s contains a character that cannot be
converted.
convertWithReplacement
public abstract byte[] convertWithReplacement(String s)
- Convert a String to bytes in oracleId representation. A String is always
produced even when the conversion isn't supported or s contains characters
that do not have a representation in oracleId. The usual conversion is to
replace characters that don't have a representation with some fixed character,
but that is not guranteed.
- Returns:
- an array containing the sequence of bytes in oracleId representation
that represent the sequence of Unicode characters
in String.
convert
public abstract byte[] convert(CharacterSet from,
byte source[],
int offset,
int count) throws SQLException
- Converts bytes in some representation to oracleId representation.
Note that the input is not guaranteed to be different from the output.
If a copy is always wanted then use convertUnshared.
- Parameters:
- from - the character set of the input bytes
- source - an array of bytes containing the bytes to be converted
- offset - the index of the first byte to be converted
- count - the number of bytes to be converted
- Throws: SQLException
- if the conversion is not supported
- Throws: SQLException
- if some character cannot be converted.
This exception is not guaranteed to be thrown. For some conversions
a replacement character may be used instead.
convertUnshared
public byte[] convertUnshared(CharacterSet from,
byte source[],
int offset,
int count) throws SQLException
- Converts bytes in some representation to oracleId representation.
This is identical to convert except that it always returns a copy
of it's input.
- Parameters:
- from - the character set of the input bytes
- source - an array of bytes containing the bytes to be converted
- offset - the index of the first byte to be converted
- count - the number of bytes to be converted
- Returns:
- an array containing a representation as an oracleId
of characters in the source.
- Throws: SQLException
- if the conversion is not supported.
- Throws: SQLException
- if some character could not be converted.
This exception is not guaranteed to be thrown. For some conversions
a replacement character may be used instead.
All Packages Class Hierarchy This Package Previous Next Index