Package com.sun.corba.ee.impl.encoding
Class CodeSetComponentInfo
- java.lang.Object
-
- com.sun.corba.ee.impl.encoding.CodeSetComponentInfo
-
public final class CodeSetComponentInfo extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodeSetComponentInfo.CodeSetComponent
CodeSetComponent is part of an IOR multi-component profile.static class
CodeSetComponentInfo.CodeSetContext
CodeSetContext goes in a GIOP service context
-
Field Summary
Fields Modifier and Type Field Description private CodeSetComponentInfo.CodeSetComponent
forCharData
private CodeSetComponentInfo.CodeSetComponent
forWCharData
static CodeSetComponentInfo
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.static CodeSetComponentInfo.CodeSetContext
LOCAL_CODE_SETS
Code sets for local cases without a connection.private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description CodeSetComponentInfo()
CodeSetComponentInfo(CodeSetComponentInfo.CodeSetComponent charData, CodeSetComponentInfo.CodeSetComponent wcharData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CodeSetComponentInfo.CodeSetComponent
createFromString(java.lang.String str)
Creates a CodeSetComponent from a String which contains a comma delimited list of OSF Code Set Registry numbers.boolean
equals(java.lang.Object obj)
CodeSetComponentInfo.CodeSetComponent
getCharComponent()
CodeSetComponentInfo.CodeSetComponent
getWCharComponent()
int
hashCode()
void
read(MarshalInputStream in)
java.lang.String
toString()
void
write(MarshalOutputStream out)
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
forCharData
private CodeSetComponentInfo.CodeSetComponent forCharData
-
forWCharData
private CodeSetComponentInfo.CodeSetComponent forWCharData
-
JAVASOFT_DEFAULT_CODESETS
public static final CodeSetComponentInfo 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
public static final CodeSetComponentInfo.CodeSetContext LOCAL_CODE_SETS
Code sets for local cases without a connection.
-
-
Constructor Detail
-
CodeSetComponentInfo
public CodeSetComponentInfo()
-
CodeSetComponentInfo
public CodeSetComponentInfo(CodeSetComponentInfo.CodeSetComponent charData, CodeSetComponentInfo.CodeSetComponent wcharData)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
read
public void read(MarshalInputStream in)
-
write
public void write(MarshalOutputStream out)
-
getCharComponent
public CodeSetComponentInfo.CodeSetComponent getCharComponent()
-
getWCharComponent
public CodeSetComponentInfo.CodeSetComponent getWCharComponent()
-
createFromString
public static CodeSetComponentInfo.CodeSetComponent createFromString(java.lang.String str)
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
-
-