Class OSFCodeSetRegistry

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

public final class OSFCodeSetRegistry extends Object
Information from the OSF code set registry version 1.2g. Use the Entry corresponding to the desired code set. Consider rename to CodeSetRegistry since OSF is dead.
  • Field Details

    • ISO_8859_1_VALUE

      public static final int ISO_8859_1_VALUE
      See Also:
    • UTF_16_VALUE

      public static final int UTF_16_VALUE
      See Also:
    • UTF_8_VALUE

      public static final int UTF_8_VALUE
      See Also:
    • UCS_2_VALUE

      public static final int UCS_2_VALUE
      See Also:
    • ISO_646_VALUE

      public static final int ISO_646_VALUE
      See Also:
    • ISO_8859_1

      public static final OSFCodeSetRegistry.Entry ISO_8859_1
      8-bit encoding required for GIOP 1.0, and used as the char set when nothing else is specified.
    • UTF_16BE

      static final OSFCodeSetRegistry.Entry UTF_16BE
      UTF-16 as specified in the OSF registry has an optional byte order marker. UTF-16BE and UTF-16LE are not in the OSF registry since it is no longer being developed. When the OMG switches to the IANA registry, these can be public. Right now, they're used internally by CodeSetConversion.
    • UTF_16LE

      static final OSFCodeSetRegistry.Entry UTF_16LE
    • UTF_16

      public static final OSFCodeSetRegistry.Entry UTF_16
      Fallback wchar code set. In the resolution of issue 3405b, UTF-16 defaults to big endian, so doesn't have to have a byte order marker. Unfortunately, this has to be a special case for compatibility.
    • UTF_8

      public static final OSFCodeSetRegistry.Entry UTF_8
      Fallback char code set. Also the code set for char data in encapsulations. However, since CORBA says chars are only one octet, it is really the same as Latin-1.
    • UCS_2

      public static final OSFCodeSetRegistry.Entry UCS_2
    • ISO_646

      public static final OSFCodeSetRegistry.Entry ISO_646
      This is the encoding older JavaSoft ORBs advertised as their CORBA char code set. Actually, they took the lower byte of the Java char. This is a 7-bit encoding, so they were really sending ISO8859-1.
  • Constructor Details

    • OSFCodeSetRegistry

      private OSFCodeSetRegistry()
  • Method Details

    • lookupEntry

      public static OSFCodeSetRegistry.Entry lookupEntry(int encodingValue)
      Given an OSF registry value, return the corresponding Entry. Returns null if an Entry for that value is unavailable.
      Parameters:
      encodingValue - value to look up
      Returns:
      Corresponding Entry