Package com.sun.corba.ee.impl.encoding
Class OSFCodeSetRegistry
- java.lang.Object
-
- com.sun.corba.ee.impl.encoding.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OSFCodeSetRegistry.Entry
An entry in the OSF registry which allows users to find out the equivalent Java character encoding name as well as some other facts from the registry.
-
Field Summary
Fields Modifier and Type Field Description static OSFCodeSetRegistry.Entry
ISO_646
This is the encoding older JavaSoft ORBs advertised as their CORBA char code set.static int
ISO_646_VALUE
static OSFCodeSetRegistry.Entry
ISO_8859_1
8-bit encoding required for GIOP 1.0, and used as the char set when nothing else is specified.static int
ISO_8859_1_VALUE
static OSFCodeSetRegistry.Entry
UCS_2
static int
UCS_2_VALUE
static OSFCodeSetRegistry.Entry
UTF_16
Fallback wchar code set.static int
UTF_16_VALUE
(package private) static OSFCodeSetRegistry.Entry
UTF_16BE
UTF-16 as specified in the OSF registry has an optional byte order marker.(package private) static OSFCodeSetRegistry.Entry
UTF_16LE
static OSFCodeSetRegistry.Entry
UTF_8
Fallback char code set.static int
UTF_8_VALUE
-
Constructor Summary
Constructors Modifier Constructor Description private
OSFCodeSetRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OSFCodeSetRegistry.Entry
lookupEntry(int encodingValue)
Given an OSF registry value, return the corresponding Entry.
-
-
-
Field Detail
-
ISO_8859_1_VALUE
public static final int ISO_8859_1_VALUE
- See Also:
- Constant Field Values
-
UTF_16_VALUE
public static final int UTF_16_VALUE
- See Also:
- Constant Field Values
-
UTF_8_VALUE
public static final int UTF_8_VALUE
- See Also:
- Constant Field Values
-
UCS_2_VALUE
public static final int UCS_2_VALUE
- See Also:
- Constant Field Values
-
ISO_646_VALUE
public static final int ISO_646_VALUE
- See Also:
- Constant Field Values
-
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.
-
-
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
-
-