Class CodeSetComponentInfo

java.lang.Object
com.sun.corba.ee.impl.encoding.CodeSetComponentInfo

public final class CodeSetComponentInfo extends Object
  • Field Details

    • wrapper

      private static final ORBUtilSystemException wrapper
    • forCharData

    • forWCharData

    • JAVASOFT_DEFAULT_CODESETS

      public static final CodeSetComponentInfo JAVASOFT_DEFAULT_CODESETS
      Our default code set scheme is as follows: char data: Native code set: ISO 8859-1 (8-bit) Conversion sets: UTF-8, ISO 646 (7-bit) wchar data: Native code set: UTF-16 Conversion sets: UCS-2 Pre-Merlin/J2EE 1.3 JavaSoft ORBs listed ISO646 for char and UCS-2 for wchar, and provided no conversion sets. They also didn't do correct negotiation or provide the fallback sets. UCS-2 is still in the conversion list for backwards compatibility. The fallbacks are UTF-8 for char and UTF-16 for wchar. In GIOP 1.1, interoperability with wchar is limited to 2 byte fixed width encodings since its wchars aren't preceded by a length. Thus, I've chosen not to include UTF-8 in the conversion set for wchar data.
    • LOCAL_CODE_SETS

      public static final CodeSetComponentInfo.CodeSetContext LOCAL_CODE_SETS
      Code sets for local cases without a connection.
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • read

      public void read(MarshalInputStream in)
    • write

      public void write(MarshalOutputStream out)
    • getCharComponent

      public CodeSetComponentInfo.CodeSetComponent getCharComponent()
    • getWCharComponent

      public CodeSetComponentInfo.CodeSetComponent getWCharComponent()
    • createFromString

      public static CodeSetComponentInfo.CodeSetComponent createFromString(String str)
      Creates a CodeSetComponent from a String which contains a comma delimited list of OSF Code Set Registry numbers. An INITIALIZE exception is thrown if any of the numbers are not known by our registry. Used by corba.ORB init. The first number in the list is taken as the native code set, and the rest is the conversion code set list. The numbers can either be decimal or hex.
      Parameters:
      str - List of OSF Code Set registry numbers
      Returns:
      Components