org.jacorb.orb.giop
Class CodeSet

java.lang.Object
  extended by org.jacorb.orb.giop.CodeSet

public class CodeSet
extends java.lang.Object

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

Field Summary
static int ISO8859_1
          ISO8859_1 represents standard ASCII.
static java.lang.String ISO8859_STR
          ISO8859_STR represents the canonical string form of ISO8859_1.
static 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
static java.lang.String UTF16_STR
          UTF16_STR represents the canonical string form of UTF16
static int UTF8
          UTF8 represents UTF8 1-6 bytes for every character X/Open UTF-8; UCS Transformation Format 8 (UTF-8)
static java.lang.String UTF8_STR
          UTF8_STR represents the canonical string form of UTF8.
 
Constructor Summary
CodeSet()
           
 
Method Summary
static void configure(org.jacorb.config.Configuration config)
          configure configures the logger and codesets.
static org.omg.IOP.ServiceContext createCodesetContext(int tcs, int tcsw)
           
static int csInt(java.lang.String name)
           
static java.lang.String csName(int cs)
           
static CodeSetContext getCodeSetContext(org.omg.IOP.ServiceContext[] contexts)
           
static int getConversionDefault()
           
static int getTCSDefault()
           
static int getTCSWDefault()
           
static void main(java.lang.String[] args)
           
static int selectTCS(CodeSetComponentInfo cs_info)
          This method compares the codesets in the component with our native codeset.
static int selectTCSW(CodeSetComponentInfo cs_info)
          This method compares the wide codesets in the component with our native wide codeset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

See Also:
Constant Field Values

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)

See Also:
Constant Field Values

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

See Also:
Constant Field Values

ISO8859_STR

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

See Also:
Constant Field Values

UTF8_STR

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

See Also:
Constant Field Values

UTF16_STR

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

See Also:
Constant Field Values
Constructor Detail

CodeSet

public CodeSet()
Method Detail

csName

public static java.lang.String csName(int cs)

configure

public static void configure(org.jacorb.config.Configuration config)
                      throws org.apache.avalon.framework.configuration.ConfigurationException
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:
org.apache.avalon.framework.configuration.ConfigurationException - if an error occurs

csInt

public static int csInt(java.lang.String name)

getTCSDefault

public static int getTCSDefault()

getTCSWDefault

public static int getTCSWDefault()

getConversionDefault

public static int getConversionDefault()

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.


createCodesetContext

public static org.omg.IOP.ServiceContext createCodesetContext(int tcs,
                                                              int tcsw)

getCodeSetContext

public static CodeSetContext getCodeSetContext(org.omg.IOP.ServiceContext[] contexts)

main

public static void main(java.lang.String[] args)