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

Variable Index

 o AL24UTFFSS_CHARSET
 o AR8ADOS710_CHARSET
 o AR8ADOS710T_CHARSET
 o AR8ADOS720_CHARSET
 o AR8ADOS720T_CHARSET
 o AR8APTEC715_CHARSET
 o AR8APTEC715T_CHARSET
 o AR8ARABICMAC_CHARSET
 o AR8ARABICMACS_CHARSET
 o AR8ARABICMACT_CHARSET
 o AR8ASMO708PLUS_CHARSET
 o AR8ASMO8X_CHARSET
 o AR8EBCDICX_CHARSET
 o AR8HPARABIC8T_CHARSET
 o AR8ISO8859P6_CHARSET
 o AR8MSAWIN_CHARSET
 o AR8MUSSAD768_CHARSET
 o AR8MUSSAD768T_CHARSET
 o AR8NAFITHA711_CHARSET
 o AR8NAFITHA711T_CHARSET
 o AR8NAFITHA721_CHARSET
 o AR8NAFITHA721T_CHARSET
 o AR8SAKHR706_CHARSET
 o AR8SAKHR707_CHARSET
 o AR8SAKHR707T_CHARSET
 o AR8XBASIC_CHARSET
 o ASCII_CHARSET
 o BG8MSWIN_CHARSET
 o BG8PC437S_CHARSET
 o BLT8CP921_CHARSET
 o BLT8EBCDIC1112_CHARSET
 o BLT8MSWIN1257_CHARSET
 o BLT8PC775_CHARSET
 o BN8BSCII_CHARSET
 o CDN8PC863_CHARSET
 o CH7DEC_CHARSET
 o CL8BS2000_CHARSET
 o CL8EBCDIC1025_CHARSET
 o CL8EBCDIC1025X_CHARSET
 o CL8ISO8859P5_CHARSET
 o CL8KOI8R_CHARSET
 o CL8MACCYRILLIC_CHARSET
 o CL8MACCYRILLICS_CHARSET
 o CL8MSWIN1251_CHARSET
 o D7DEC_CHARSET
 o D7SIEMENS9780X_CHARSET
 o D8BS2000_CHARSET
 o D8EBCDIC273_CHARSET
 o DEFAULT_CHARSET
Special value.
 o DK7SIEMENS9780X_CHARSET
 o DK8BS2000_CHARSET
 o DK8EBCDIC277_CHARSET
 o E7DEC_CHARSET
 o E7SIEMENS9780X_CHARSET
 o E8BS2000_CHARSET
 o EE8EBCDIC870_CHARSET
 o EE8ISO8859P2_CHARSET
 o EE8MACCE_CHARSET
 o EE8MACCES_CHARSET
 o EE8MACCROATIAN_CHARSET
 o EE8MACCROATIANS_CHARSET
 o EE8MSWIN1250_CHARSET
 o EE8PC852_CHARSET
 o EEC8EUROASCI_CHARSET
 o EEC8EUROPA3_CHARSET
 o EL8DEC_CHARSET
 o EL8EBCDIC875_CHARSET
 o EL8GCOS7_CHARSET
 o EL8ISO8859P7_CHARSET
 o EL8MACGREEK_CHARSET
 o EL8MACGREEKS_CHARSET
 o EL8MSWIN1253_CHARSET
 o EL8PC437S_CHARSET
 o EL8PC737_CHARSET
 o EL8PC851_CHARSET
 o EL8PC869_CHARSET
 o ET8MSWIN923_CHARSET
 o F7DEC_CHARSET
 o F7SIEMENS9780X_CHARSET
 o F8BS2000_CHARSET
 o F8EBCDIC297_CHARSET
 o HU8ABMOD_CHARSET
 o HU8CWI2_CHARSET
 o I7DEC_CHARSET
 o I7SIEMENS9780X_CHARSET
 o I8EBCDIC280_CHARSET
 o IN8ISCII_CHARSET
 o IS8MACICELANDIC_CHARSET
 o IS8MACICELANDICS_CHARSET
 o IS8PC861_CHARSET
 o ISO_LATIN_1_CHARSET
 o IW7IS960_CHARSET
 o IW8EBCDIC1086_CHARSET
 o IW8EBCDIC424_CHARSET
 o IW8ISO8859P8_CHARSET
 o IW8MACHEBREW_CHARSET
 o IW8MACHEBREWS_CHARSET
 o IW8MSWIN1255_CHARSET
 o IW8PC1507_CHARSET
 o JA16DBCS_CHARSET
 o JA16DBCSFIXED_CHARSET
 o JA16EBCDIC930_CHARSET
 o JA16EUC_CHARSET
 o JA16EUCFIXED_CHARSET
 o JA16EUCYEN_CHARSET
 o JA16MACSJIS_CHARSET
 o JA16SJIS_CHARSET
 o JA16SJISFIXED_CHARSET
 o JA16SJISYEN_CHARSET
 o JA16TSTSET2_CHARSET
 o JA16TSTSET_CHARSET
 o JA16VMS_CHARSET
 o KO16DBCS_CHARSET
 o KO16DBCSFIXED_CHARSET
 o KO16KSC5601_CHARSET
 o KO16KSC5601FIXED_CHARSET
 o KO16KSCCS_CHARSET
 o KO16MSWIN949_CHARSET
 o KO16TSTSET_CHARSET
 o LA8ISO6937_CHARSET
 o LA8PASSPORT_CHARSET
 o LT8MSWIN921_CHARSET
 o LT8PC772_CHARSET
 o LT8PC774_CHARSET
 o LV8PC1117_CHARSET
 o LV8PC8LR_CHARSET
 o LV8RST104090_CHARSET
 o N7SIEMENS9780X_CHARSET
 o N8PC865_CHARSET
 o NDK7DEC_CHARSET
 o NE8ISO8859P10_CHARSET
 o NEE8ISO8859P4_CHARSET
 o NL7DEC_CHARSET
 o RU8BESTA_CHARSET
 o RU8PC855_CHARSET
 o RU8PC866_CHARSET
 o S7DEC_CHARSET
 o S7SIEMENS9780X_CHARSET
 o S8BS2000_CHARSET
 o S8EBCDIC278_CHARSET
 o SE8ISO8859P3_CHARSET
 o SF7ASCII_CHARSET
 o SF7DEC_CHARSET
 o TH8MACTHAI_CHARSET
 o TH8MACTHAIS_CHARSET
 o TH8TISASCII_CHARSET
 o TH8TISEBCDIC_CHARSET
 o TR7DEC_CHARSET
 o TR8DEC_CHARSET
 o TR8EBCDIC1026_CHARSET
 o TR8MACTURKISH_CHARSET
 o TR8MACTURKISHS_CHARSET
 o TR8MSWIN1254_CHARSET
 o TR8PC857_CHARSET
 o UNICODE_1_CHARSET
 o UNICODE_2_CHARSET
This unicode is a "true UTF8".
 o US16TSTFIXED_CHARSET
 o US7ASCII_CHARSET
 o US8BS2000_CHARSET
 o US8ICL_CHARSET
 o US8NOOP_CHARSET
 o US8PC437_CHARSET
 o UTF8_CHARSET
 o VN8MSWIN1258_CHARSET
 o VN8VN3_CHARSET
 o WE8BS2000_CHARSET
 o WE8BS2000L5_CHARSET
 o WE8DEC_CHARSET
 o WE8DECTST_CHARSET
 o WE8DG_CHARSET
 o WE8EBCDIC1047_CHARSET
 o WE8EBCDIC284_CHARSET
 o WE8EBCDIC285_CHARSET
 o WE8EBCDIC37_CHARSET
 o WE8EBCDIC37C_CHARSET
 o WE8EBCDIC500_CHARSET
 o WE8EBCDIC500C_CHARSET
 o WE8EBCDIC871_CHARSET
 o WE8GCOS7_CHARSET
 o WE8HP_CHARSET
 o WE8ICL_CHARSET
 o WE8ISO8859P1_CHARSET
 o WE8ISO8859P9_CHARSET
 o WE8ISOICLUK_CHARSET
 o WE8MACROMAN8_CHARSET
 o WE8MACROMAN8S_CHARSET
 o WE8MSWIN1252_CHARSET
 o WE8NCR4970_CHARSET
 o WE8NEXTSTEP_CHARSET
 o WE8PC850_CHARSET
 o WE8PC860_CHARSET
 o WE8ROMAN8_CHARSET
 o YUG7ASCII_CHARSET
 o ZHS16CGB231280_CHARSET
 o ZHS16CGB231280FIXED_CHARSET
 o ZHS16DBCS_CHARSET
 o ZHS16DBCSFIXED_CHARSET
 o ZHS16GBK_CHARSET
 o ZHS16GBKFIXED_CHARSET
 o ZHS16MACCGB231280_CHARSET
 o ZHT16BIG5_CHARSET
 o ZHT16BIG5FIXED_CHARSET
 o ZHT16CCDC_CHARSET
 o ZHT16DBCS_CHARSET
 o ZHT16DBCSFIXED_CHARSET
 o ZHT16DBT_CHARSET
 o ZHT16MSWIN950_CHARSET
 o ZHT32EUC_CHARSET
 o ZHT32EUCFIXED_CHARSET
 o ZHT32SOPS_CHARSET
 o ZHT32TRIS_CHARSET
 o ZHT32TRISFIXED_CHARSET

Method Index

 o convert(CharacterSet, byte[], int, int)
Converts bytes in some representation to oracleId representation.
 o convert(String)
Convert a String to bytes in oracleId representation.
 o convertUnshared(CharacterSet, byte[], int, int)
Converts bytes in some representation to oracleId representation.
 o convertWithReplacement(String)
Convert a String to bytes in oracleId representation.
 o equals(Object)
Two CharacterSet's are equal when their oracleId's are equal
 o getOracleId()
The integer that identifies the character set.
 o getRatioTo(CharacterSet)
I have no idea what this is supposed to return -- jschwarz.
 o hashCode()
Implements a hash based on oracleId
 o isConvertibleFrom(CharacterSet)
Are conversions supported.
 o isLossyFrom(CharacterSet)
A conversion looses information if the mapping is not invertible.
 o make(int)
Factory.
 o toString()
This should be the official name of the character set.
 o toString(byte[], int, int)
Convert bytes in oracleId representation to a String.
 o toStringWithReplacement(byte[], int, int)
Convert bytes in oracleId representation to a String.

Variables

 o 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 ...

 o ASCII_CHARSET
 public static final short ASCII_CHARSET
 o ISO_LATIN_1_CHARSET
 public static final short ISO_LATIN_1_CHARSET
 o UNICODE_1_CHARSET
 public static final short UNICODE_1_CHARSET
 o US7ASCII_CHARSET
 public static final short US7ASCII_CHARSET
 o WE8DEC_CHARSET
 public static final short WE8DEC_CHARSET
 o WE8HP_CHARSET
 public static final short WE8HP_CHARSET
 o US8PC437_CHARSET
 public static final short US8PC437_CHARSET
 o WE8EBCDIC37_CHARSET
 public static final short WE8EBCDIC37_CHARSET
 o WE8EBCDIC500_CHARSET
 public static final short WE8EBCDIC500_CHARSET
 o WE8EBCDIC285_CHARSET
 public static final short WE8EBCDIC285_CHARSET
 o WE8PC850_CHARSET
 public static final short WE8PC850_CHARSET
 o D7DEC_CHARSET
 public static final short D7DEC_CHARSET
 o F7DEC_CHARSET
 public static final short F7DEC_CHARSET
 o S7DEC_CHARSET
 public static final short S7DEC_CHARSET
 o E7DEC_CHARSET
 public static final short E7DEC_CHARSET
 o SF7ASCII_CHARSET
 public static final short SF7ASCII_CHARSET
 o NDK7DEC_CHARSET
 public static final short NDK7DEC_CHARSET
 o I7DEC_CHARSET
 public static final short I7DEC_CHARSET
 o NL7DEC_CHARSET
 public static final short NL7DEC_CHARSET
 o CH7DEC_CHARSET
 public static final short CH7DEC_CHARSET
 o YUG7ASCII_CHARSET
 public static final short YUG7ASCII_CHARSET
 o SF7DEC_CHARSET
 public static final short SF7DEC_CHARSET
 o TR7DEC_CHARSET
 public static final short TR7DEC_CHARSET
 o IW7IS960_CHARSET
 public static final short IW7IS960_CHARSET
 o IN8ISCII_CHARSET
 public static final short IN8ISCII_CHARSET
 o WE8ISO8859P1_CHARSET
 public static final short WE8ISO8859P1_CHARSET
 o EE8ISO8859P2_CHARSET
 public static final short EE8ISO8859P2_CHARSET
 o SE8ISO8859P3_CHARSET
 public static final short SE8ISO8859P3_CHARSET
 o NEE8ISO8859P4_CHARSET
 public static final short NEE8ISO8859P4_CHARSET
 o CL8ISO8859P5_CHARSET
 public static final short CL8ISO8859P5_CHARSET
 o AR8ISO8859P6_CHARSET
 public static final short AR8ISO8859P6_CHARSET
 o EL8ISO8859P7_CHARSET
 public static final short EL8ISO8859P7_CHARSET
 o IW8ISO8859P8_CHARSET
 public static final short IW8ISO8859P8_CHARSET
 o WE8ISO8859P9_CHARSET
 public static final short WE8ISO8859P9_CHARSET
 o NE8ISO8859P10_CHARSET
 public static final short NE8ISO8859P10_CHARSET
 o TH8TISASCII_CHARSET
 public static final short TH8TISASCII_CHARSET
 o TH8TISEBCDIC_CHARSET
 public static final short TH8TISEBCDIC_CHARSET
 o BN8BSCII_CHARSET
 public static final short BN8BSCII_CHARSET
 o VN8VN3_CHARSET
 public static final short VN8VN3_CHARSET
 o VN8MSWIN1258_CHARSET
 public static final short VN8MSWIN1258_CHARSET
 o WE8NEXTSTEP_CHARSET
 public static final short WE8NEXTSTEP_CHARSET
 o AR8ASMO708PLUS_CHARSET
 public static final short AR8ASMO708PLUS_CHARSET
 o AR8EBCDICX_CHARSET
 public static final short AR8EBCDICX_CHARSET
 o AR8XBASIC_CHARSET
 public static final short AR8XBASIC_CHARSET
 o EL8DEC_CHARSET
 public static final short EL8DEC_CHARSET
 o TR8DEC_CHARSET
 public static final short TR8DEC_CHARSET
 o WE8EBCDIC37C_CHARSET
 public static final short WE8EBCDIC37C_CHARSET
 o WE8EBCDIC500C_CHARSET
 public static final short WE8EBCDIC500C_CHARSET
 o IW8EBCDIC424_CHARSET
 public static final short IW8EBCDIC424_CHARSET
 o TR8EBCDIC1026_CHARSET
 public static final short TR8EBCDIC1026_CHARSET
 o WE8EBCDIC871_CHARSET
 public static final short WE8EBCDIC871_CHARSET
 o WE8EBCDIC284_CHARSET
 public static final short WE8EBCDIC284_CHARSET
 o WE8EBCDIC1047_CHARSET
 public static final short WE8EBCDIC1047_CHARSET
 o EEC8EUROASCI_CHARSET
 public static final short EEC8EUROASCI_CHARSET
 o EEC8EUROPA3_CHARSET
 public static final short EEC8EUROPA3_CHARSET
 o LA8PASSPORT_CHARSET
 public static final short LA8PASSPORT_CHARSET
 o BG8PC437S_CHARSET
 public static final short BG8PC437S_CHARSET
 o EE8PC852_CHARSET
 public static final short EE8PC852_CHARSET
 o RU8PC866_CHARSET
 public static final short RU8PC866_CHARSET
 o RU8BESTA_CHARSET
 public static final short RU8BESTA_CHARSET
 o IW8PC1507_CHARSET
 public static final short IW8PC1507_CHARSET
 o RU8PC855_CHARSET
 public static final short RU8PC855_CHARSET
 o TR8PC857_CHARSET
 public static final short TR8PC857_CHARSET
 o CL8MACCYRILLIC_CHARSET
 public static final short CL8MACCYRILLIC_CHARSET
 o CL8MACCYRILLICS_CHARSET
 public static final short CL8MACCYRILLICS_CHARSET
 o WE8PC860_CHARSET
 public static final short WE8PC860_CHARSET
 o IS8PC861_CHARSET
 public static final short IS8PC861_CHARSET
 o EE8MACCES_CHARSET
 public static final short EE8MACCES_CHARSET
 o EE8MACCROATIANS_CHARSET
 public static final short EE8MACCROATIANS_CHARSET
 o TR8MACTURKISHS_CHARSET
 public static final short TR8MACTURKISHS_CHARSET
 o IS8MACICELANDICS_CHARSET
 public static final short IS8MACICELANDICS_CHARSET
 o EL8MACGREEKS_CHARSET
 public static final short EL8MACGREEKS_CHARSET
 o IW8MACHEBREWS_CHARSET
 public static final short IW8MACHEBREWS_CHARSET
 o EE8MSWIN1250_CHARSET
 public static final short EE8MSWIN1250_CHARSET
 o CL8MSWIN1251_CHARSET
 public static final short CL8MSWIN1251_CHARSET
 o ET8MSWIN923_CHARSET
 public static final short ET8MSWIN923_CHARSET
 o BG8MSWIN_CHARSET
 public static final short BG8MSWIN_CHARSET
 o EL8MSWIN1253_CHARSET
 public static final short EL8MSWIN1253_CHARSET
 o IW8MSWIN1255_CHARSET
 public static final short IW8MSWIN1255_CHARSET
 o LT8MSWIN921_CHARSET
 public static final short LT8MSWIN921_CHARSET
 o TR8MSWIN1254_CHARSET
 public static final short TR8MSWIN1254_CHARSET
 o WE8MSWIN1252_CHARSET
 public static final short WE8MSWIN1252_CHARSET
 o BLT8MSWIN1257_CHARSET
 public static final short BLT8MSWIN1257_CHARSET
 o D8EBCDIC273_CHARSET
 public static final short D8EBCDIC273_CHARSET
 o I8EBCDIC280_CHARSET
 public static final short I8EBCDIC280_CHARSET
 o DK8EBCDIC277_CHARSET
 public static final short DK8EBCDIC277_CHARSET
 o S8EBCDIC278_CHARSET
 public static final short S8EBCDIC278_CHARSET
 o EE8EBCDIC870_CHARSET
 public static final short EE8EBCDIC870_CHARSET
 o CL8EBCDIC1025_CHARSET
 public static final short CL8EBCDIC1025_CHARSET
 o F8EBCDIC297_CHARSET
 public static final short F8EBCDIC297_CHARSET
 o IW8EBCDIC1086_CHARSET
 public static final short IW8EBCDIC1086_CHARSET
 o CL8EBCDIC1025X_CHARSET
 public static final short CL8EBCDIC1025X_CHARSET
 o N8PC865_CHARSET
 public static final short N8PC865_CHARSET
 o BLT8CP921_CHARSET
 public static final short BLT8CP921_CHARSET
 o LV8PC1117_CHARSET
 public static final short LV8PC1117_CHARSET
 o LV8PC8LR_CHARSET
 public static final short LV8PC8LR_CHARSET
 o BLT8EBCDIC1112_CHARSET
 public static final short BLT8EBCDIC1112_CHARSET
 o LV8RST104090_CHARSET
 public static final short LV8RST104090_CHARSET
 o CL8KOI8R_CHARSET
 public static final short CL8KOI8R_CHARSET
 o BLT8PC775_CHARSET
 public static final short BLT8PC775_CHARSET
 o F7SIEMENS9780X_CHARSET
 public static final short F7SIEMENS9780X_CHARSET
 o E7SIEMENS9780X_CHARSET
 public static final short E7SIEMENS9780X_CHARSET
 o S7SIEMENS9780X_CHARSET
 public static final short S7SIEMENS9780X_CHARSET
 o DK7SIEMENS9780X_CHARSET
 public static final short DK7SIEMENS9780X_CHARSET
 o N7SIEMENS9780X_CHARSET
 public static final short N7SIEMENS9780X_CHARSET
 o I7SIEMENS9780X_CHARSET
 public static final short I7SIEMENS9780X_CHARSET
 o D7SIEMENS9780X_CHARSET
 public static final short D7SIEMENS9780X_CHARSET
 o WE8GCOS7_CHARSET
 public static final short WE8GCOS7_CHARSET
 o EL8GCOS7_CHARSET
 public static final short EL8GCOS7_CHARSET
 o US8BS2000_CHARSET
 public static final short US8BS2000_CHARSET
 o D8BS2000_CHARSET
 public static final short D8BS2000_CHARSET
 o F8BS2000_CHARSET
 public static final short F8BS2000_CHARSET
 o E8BS2000_CHARSET
 public static final short E8BS2000_CHARSET
 o DK8BS2000_CHARSET
 public static final short DK8BS2000_CHARSET
 o S8BS2000_CHARSET
 public static final short S8BS2000_CHARSET
 o WE8BS2000_CHARSET
 public static final short WE8BS2000_CHARSET
 o CL8BS2000_CHARSET
 public static final short CL8BS2000_CHARSET
 o WE8BS2000L5_CHARSET
 public static final short WE8BS2000L5_CHARSET
 o WE8DG_CHARSET
 public static final short WE8DG_CHARSET
 o WE8NCR4970_CHARSET
 public static final short WE8NCR4970_CHARSET
 o WE8ROMAN8_CHARSET
 public static final short WE8ROMAN8_CHARSET
 o EE8MACCE_CHARSET
 public static final short EE8MACCE_CHARSET
 o EE8MACCROATIAN_CHARSET
 public static final short EE8MACCROATIAN_CHARSET
 o TR8MACTURKISH_CHARSET
 public static final short TR8MACTURKISH_CHARSET
 o IS8MACICELANDIC_CHARSET
 public static final short IS8MACICELANDIC_CHARSET
 o EL8MACGREEK_CHARSET
 public static final short EL8MACGREEK_CHARSET
 o IW8MACHEBREW_CHARSET
 public static final short IW8MACHEBREW_CHARSET
 o US8ICL_CHARSET
 public static final short US8ICL_CHARSET
 o WE8ICL_CHARSET
 public static final short WE8ICL_CHARSET
 o WE8ISOICLUK_CHARSET
 public static final short WE8ISOICLUK_CHARSET
 o WE8MACROMAN8_CHARSET
 public static final short WE8MACROMAN8_CHARSET
 o WE8MACROMAN8S_CHARSET
 public static final short WE8MACROMAN8S_CHARSET
 o TH8MACTHAI_CHARSET
 public static final short TH8MACTHAI_CHARSET
 o TH8MACTHAIS_CHARSET
 public static final short TH8MACTHAIS_CHARSET
 o HU8CWI2_CHARSET
 public static final short HU8CWI2_CHARSET
 o EL8PC437S_CHARSET
 public static final short EL8PC437S_CHARSET
 o EL8EBCDIC875_CHARSET
 public static final short EL8EBCDIC875_CHARSET
 o EL8PC737_CHARSET
 public static final short EL8PC737_CHARSET
 o LT8PC772_CHARSET
 public static final short LT8PC772_CHARSET
 o LT8PC774_CHARSET
 public static final short LT8PC774_CHARSET
 o EL8PC869_CHARSET
 public static final short EL8PC869_CHARSET
 o EL8PC851_CHARSET
 public static final short EL8PC851_CHARSET
 o CDN8PC863_CHARSET
 public static final short CDN8PC863_CHARSET
 o HU8ABMOD_CHARSET
 public static final short HU8ABMOD_CHARSET
 o AR8ASMO8X_CHARSET
 public static final short AR8ASMO8X_CHARSET
 o AR8NAFITHA711T_CHARSET
 public static final short AR8NAFITHA711T_CHARSET
 o AR8SAKHR707T_CHARSET
 public static final short AR8SAKHR707T_CHARSET
 o AR8MUSSAD768T_CHARSET
 public static final short AR8MUSSAD768T_CHARSET
 o AR8ADOS710T_CHARSET
 public static final short AR8ADOS710T_CHARSET
 o AR8ADOS720T_CHARSET
 public static final short AR8ADOS720T_CHARSET
 o AR8APTEC715T_CHARSET
 public static final short AR8APTEC715T_CHARSET
 o AR8NAFITHA721T_CHARSET
 public static final short AR8NAFITHA721T_CHARSET
 o AR8HPARABIC8T_CHARSET
 public static final short AR8HPARABIC8T_CHARSET
 o AR8NAFITHA711_CHARSET
 public static final short AR8NAFITHA711_CHARSET
 o AR8SAKHR707_CHARSET
 public static final short AR8SAKHR707_CHARSET
 o AR8MUSSAD768_CHARSET
 public static final short AR8MUSSAD768_CHARSET
 o AR8ADOS710_CHARSET
 public static final short AR8ADOS710_CHARSET
 o AR8ADOS720_CHARSET
 public static final short AR8ADOS720_CHARSET
 o AR8APTEC715_CHARSET
 public static final short AR8APTEC715_CHARSET
 o AR8MSAWIN_CHARSET
 public static final short AR8MSAWIN_CHARSET
 o AR8NAFITHA721_CHARSET
 public static final short AR8NAFITHA721_CHARSET
 o AR8SAKHR706_CHARSET
 public static final short AR8SAKHR706_CHARSET
 o AR8ARABICMAC_CHARSET
 public static final short AR8ARABICMAC_CHARSET
 o AR8ARABICMACS_CHARSET
 public static final short AR8ARABICMACS_CHARSET
 o AR8ARABICMACT_CHARSET
 public static final short AR8ARABICMACT_CHARSET
 o LA8ISO6937_CHARSET
 public static final short LA8ISO6937_CHARSET
 o US8NOOP_CHARSET
 public static final short US8NOOP_CHARSET
 o WE8DECTST_CHARSET
 public static final short WE8DECTST_CHARSET
 o JA16VMS_CHARSET
 public static final short JA16VMS_CHARSET
 o JA16EUC_CHARSET
 public static final short JA16EUC_CHARSET
 o JA16EUCYEN_CHARSET
 public static final short JA16EUCYEN_CHARSET
 o JA16SJIS_CHARSET
 public static final short JA16SJIS_CHARSET
 o JA16DBCS_CHARSET
 public static final short JA16DBCS_CHARSET
 o JA16SJISYEN_CHARSET
 public static final short JA16SJISYEN_CHARSET
 o JA16EBCDIC930_CHARSET
 public static final short JA16EBCDIC930_CHARSET
 o JA16MACSJIS_CHARSET
 public static final short JA16MACSJIS_CHARSET
 o KO16KSC5601_CHARSET
 public static final short KO16KSC5601_CHARSET
 o KO16DBCS_CHARSET
 public static final short KO16DBCS_CHARSET
 o KO16KSCCS_CHARSET
 public static final short KO16KSCCS_CHARSET
 o KO16MSWIN949_CHARSET
 public static final short KO16MSWIN949_CHARSET
 o ZHS16CGB231280_CHARSET
 public static final short ZHS16CGB231280_CHARSET
 o ZHS16MACCGB231280_CHARSET
 public static final short ZHS16MACCGB231280_CHARSET
 o ZHS16GBK_CHARSET
 public static final short ZHS16GBK_CHARSET
 o ZHS16DBCS_CHARSET
 public static final short ZHS16DBCS_CHARSET
 o ZHT32EUC_CHARSET
 public static final short ZHT32EUC_CHARSET
 o ZHT32SOPS_CHARSET
 public static final short ZHT32SOPS_CHARSET
 o ZHT16DBT_CHARSET
 public static final short ZHT16DBT_CHARSET
 o ZHT32TRIS_CHARSET
 public static final short ZHT32TRIS_CHARSET
 o ZHT16DBCS_CHARSET
 public static final short ZHT16DBCS_CHARSET
 o ZHT16BIG5_CHARSET
 public static final short ZHT16BIG5_CHARSET
 o ZHT16CCDC_CHARSET
 public static final short ZHT16CCDC_CHARSET
 o ZHT16MSWIN950_CHARSET
 public static final short ZHT16MSWIN950_CHARSET
 o AL24UTFFSS_CHARSET
 public static final short AL24UTFFSS_CHARSET
 o UTF8_CHARSET
 public static final short UTF8_CHARSET
 o KO16TSTSET_CHARSET
 public static final short KO16TSTSET_CHARSET
 o JA16TSTSET2_CHARSET
 public static final short JA16TSTSET2_CHARSET
 o JA16TSTSET_CHARSET
 public static final short JA16TSTSET_CHARSET
 o US16TSTFIXED_CHARSET
 public static final short US16TSTFIXED_CHARSET
 o JA16EUCFIXED_CHARSET
 public static final short JA16EUCFIXED_CHARSET
 o JA16SJISFIXED_CHARSET
 public static final short JA16SJISFIXED_CHARSET
 o JA16DBCSFIXED_CHARSET
 public static final short JA16DBCSFIXED_CHARSET
 o KO16KSC5601FIXED_CHARSET
 public static final short KO16KSC5601FIXED_CHARSET
 o KO16DBCSFIXED_CHARSET
 public static final short KO16DBCSFIXED_CHARSET
 o ZHS16CGB231280FIXED_CHARSET
 public static final short ZHS16CGB231280FIXED_CHARSET
 o ZHS16GBKFIXED_CHARSET
 public static final short ZHS16GBKFIXED_CHARSET
 o ZHS16DBCSFIXED_CHARSET
 public static final short ZHS16DBCSFIXED_CHARSET
 o ZHT32EUCFIXED_CHARSET
 public static final short ZHT32EUCFIXED_CHARSET
 o ZHT32TRISFIXED_CHARSET
 public static final short ZHT32TRISFIXED_CHARSET
 o ZHT16DBCSFIXED_CHARSET
 public static final short ZHT16DBCSFIXED_CHARSET
 o ZHT16BIG5FIXED_CHARSET
 public static final short ZHT16BIG5FIXED_CHARSET
 o 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

Methods

 o 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.
 o 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
 o 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.
 o 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.
 o getOracleId
 public int getOracleId()
The integer that identifies the character set.

 o getRatioTo
 public int getRatioTo(CharacterSet to)
I have no idea what this is supposed to return -- jschwarz.

 o equals
 public boolean equals(Object rhs)
Two CharacterSet's are equal when their oracleId's are equal

Overrides:
equals in class Object
 o hashCode
 public int hashCode()
Implements a hash based on oracleId

Overrides:
hashCode in class Object
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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