org.jacorb.orb.giop

Class CodeSet

public class CodeSet extends Object

Version: $Id: CodeSet.java,v 1.22 2006/07/26 13:24:38 nick.cross Exp $

Author: Gerald Brose

Field Summary
static intISO8859_1
ISO8859_1 represents standard ASCII.
static StringISO8859_STR
ISO8859_STR represents the canonical string form of ISO8859_1.
static intUTF16
UTF16 represents extended UCS2, 2 or 4 bytes for every char ISO/IEC 10646-1:1993; UTF-16, UCS Transformation Format 16-bit form
static StringUTF16_STR
UTF16_STR represents the canonical string form of UTF16
static intUTF8
UTF8 represents UTF8 1-6 bytes for every character X/Open UTF-8; UCS Transformation Format 8 (UTF-8)
static StringUTF8_STR
UTF8_STR represents the canonical string form of UTF8.
Method Summary
static voidconfigure(Configuration config)
configure configures the logger and codesets.
static ServiceContextcreateCodesetContext(int tcs, int tcsw)
static intcsInt(String name)
static StringcsName(int cs)
static CodeSetContextgetCodeSetContext(ServiceContext[] contexts)
static intgetConversionDefault()
static intgetTCSDefault()
static intgetTCSWDefault()
static voidmain(String[] args)
static intselectTCS(CodeSetComponentInfo cs_info)
This method compares the codesets in the component with our native codeset.
static intselectTCSW(CodeSetComponentInfo cs_info)
This method compares the wide codesets in the component with our native wide codeset.

Field Detail

ISO8859_1

public static final int ISO8859_1
ISO8859_1 represents standard ASCII. It is ISO 8859-1:1987; Latin Alphabet No. 1

ISO8859_STR

public static final String ISO8859_STR
ISO8859_STR represents the canonical string form of ISO8859_1.

UTF16

public static final int UTF16
UTF16 represents extended UCS2, 2 or 4 bytes for every char ISO/IEC 10646-1:1993; UTF-16, UCS Transformation Format 16-bit form

UTF16_STR

public static final String UTF16_STR
UTF16_STR represents the canonical string form of UTF16

UTF8

public static final int UTF8
UTF8 represents UTF8 1-6 bytes for every character X/Open UTF-8; UCS Transformation Format 8 (UTF-8)

UTF8_STR

public static final String UTF8_STR
UTF8_STR represents the canonical string form of UTF8.

Method Detail

configure

public static void configure(Configuration config)
configure configures the logger and codesets. It is synchronized as the configuration parameters are static and therefore we do not want to 'collide' with another init. This class does not implement configurable which ideally it should. However as this method is static it would conflict with it.

Parameters: config a Configuration value

Throws: ConfigurationException if an error occurs

createCodesetContext

public static ServiceContext createCodesetContext(int tcs, int tcsw)

csInt

public static int csInt(String name)

csName

public static String csName(int cs)

getCodeSetContext

public static CodeSetContext getCodeSetContext(ServiceContext[] contexts)

getConversionDefault

public static int getConversionDefault()

getTCSDefault

public static int getTCSDefault()

getTCSWDefault

public static int getTCSWDefault()

main

public static void main(String[] args)

selectTCS

public static int selectTCS(CodeSetComponentInfo cs_info)
This method compares the codesets in the component with our native codeset.

selectTCSW

public static int selectTCSW(CodeSetComponentInfo cs_info)
This method compares the wide codesets in the component with our native wide codeset.