Package com.sun.corba.ee.impl.encoding
Class OSFCodeSetRegistry
java.lang.Object
com.sun.corba.ee.impl.encoding.OSFCodeSetRegistry
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 ClassesModifier and TypeClassDescriptionstatic final class
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
FieldsModifier and TypeFieldDescriptionstatic final OSFCodeSetRegistry.Entry
This is the encoding older JavaSoft ORBs advertised as their CORBA char code set.static final int
static final OSFCodeSetRegistry.Entry
8-bit encoding required for GIOP 1.0, and used as the char set when nothing else is specified.static final int
static final OSFCodeSetRegistry.Entry
static final int
static final OSFCodeSetRegistry.Entry
Fallback wchar code set.static final int
(package private) static final OSFCodeSetRegistry.Entry
UTF-16 as specified in the OSF registry has an optional byte order marker.(package private) static final OSFCodeSetRegistry.Entry
static final OSFCodeSetRegistry.Entry
Fallback char code set.static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OSFCodeSetRegistry.Entry
lookupEntry
(int encodingValue) Given an OSF registry value, return the corresponding Entry.
-
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
8-bit encoding required for GIOP 1.0, and used as the char set when nothing else is specified. -
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
-
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
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
-
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
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
-