Package com.sun.corba.ee.impl.encoding
Class CodeSetComponentInfo
java.lang.Object
com.sun.corba.ee.impl.encoding.CodeSetComponentInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
CodeSetComponent is part of an IOR multi-component profile.static final class
CodeSetContext goes in a GIOP service context -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CodeSetComponentInfo
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.static final CodeSetComponentInfo.CodeSetContext
Code sets for local cases without a connection.private static final ORBUtilSystemException
-
Constructor Summary
ConstructorsConstructorDescriptionCodeSetComponentInfo
(CodeSetComponentInfo.CodeSetComponent charData, CodeSetComponentInfo.CodeSetComponent wcharData) -
Method Summary
Modifier and TypeMethodDescriptioncreateFromString
(String str) Creates a CodeSetComponent from a String which contains a comma delimited list of OSF Code Set Registry numbers.boolean
int
hashCode()
void
toString()
void
write
(MarshalOutputStream out)
-
Field Details
-
wrapper
-
forCharData
-
forWCharData
-
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
Code sets for local cases without a connection.
-
-
Constructor Details
-
CodeSetComponentInfo
public CodeSetComponentInfo() -
CodeSetComponentInfo
public CodeSetComponentInfo(CodeSetComponentInfo.CodeSetComponent charData, CodeSetComponentInfo.CodeSetComponent wcharData)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
read
-
write
-
getCharComponent
-
getWCharComponent
-
createFromString
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
-