Class OSFCodeSetRegistry


  • public final class OSFCodeSetRegistry
    extends java.lang.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 Detail

      • 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_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.
      • 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 Detail

      • OSFCodeSetRegistry

        private OSFCodeSetRegistry()
    • Method Detail

      • 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