本文整理汇总了Java中com.sun.corba.se.impl.encoding.OSFCodeSetRegistry类的典型用法代码示例。如果您正苦于以下问题:Java OSFCodeSetRegistry类的具体用法?Java OSFCodeSetRegistry怎么用?Java OSFCodeSetRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OSFCodeSetRegistry类属于com.sun.corba.se.impl.encoding包,在下文中一共展示了OSFCodeSetRegistry类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createWCharBTCConverter
import com.sun.corba.se.impl.encoding.OSFCodeSetRegistry; //导入依赖的package包/类
protected CodeSetConversion.BTCConverter createWCharBTCConverter() {
// Wide characters don't exist in GIOP 1.0
if (getGIOPVersion().equals(GIOPVersion.V1_0))
throw wrapper.wcharDataInGiop10( CompletionStatus.COMPLETED_MAYBE);
// In GIOP 1.1, we shouldn't have byte order markers. Take the order
// of the stream if we don't see them.
if (getGIOPVersion().equals(GIOPVersion.V1_1))
return CodeSetConversion.impl().getBTCConverter(OSFCodeSetRegistry.UTF_16,
isLittleEndian());
// Assume anything else adheres to GIOP 1.2 requirements.
//
// Our UTF_16 converter will work with byte order markers, and if
// they aren't present, it will use the provided endianness.
//
// With no byte order marker, it's big endian in GIOP 1.2.
// formal 00-11-03 15.3.16.
return CodeSetConversion.impl().getBTCConverter(OSFCodeSetRegistry.UTF_16,
false);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:22,代码来源:EncapsInputStream.java
示例2: createCharBTCConverter
import com.sun.corba.se.impl.encoding.OSFCodeSetRegistry; //导入依赖的package包/类
/**
* Override the default CDR factory behavior to get the
* negotiated code sets from the connection.
*
* These are only called once per message, the first time needed.
*
* In the local case, there is no Connection, so use the
* local code sets.
*/
protected CodeSetConversion.BTCConverter createCharBTCConverter() {
CodeSetComponentInfo.CodeSetContext codesets = getCodeSets();
// If the connection doesn't have its negotiated
// code sets by now, fall back on the defaults defined
// in CDRInputStream.
if (codesets == null)
return super.createCharBTCConverter();
OSFCodeSetRegistry.Entry charSet
= OSFCodeSetRegistry.lookupEntry(codesets.getCharCodeSet());
if (charSet == null)
throw wrapper.unknownCodeset( charSet ) ;
return CodeSetConversion.impl().getBTCConverter(charSet, isLittleEndian());
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:CDRInputObject.java
示例3: createCharCTBConverter
import com.sun.corba.se.impl.encoding.OSFCodeSetRegistry; //导入依赖的package包/类
/**
* Override the default CDR factory behavior to get the
* negotiated code sets from the connection.
*
* These are only called once per message, the first time needed.
*
* In the local case, there is no Connection, so use the
* local code sets.
*/
protected CodeSetConversion.CTBConverter createCharCTBConverter() {
CodeSetComponentInfo.CodeSetContext codesets = getCodeSets();
// If the connection doesn't have its negotiated
// code sets by now, fall back on the defaults defined
// in CDRInputStream.
if (codesets == null)
return super.createCharCTBConverter();
OSFCodeSetRegistry.Entry charSet
= OSFCodeSetRegistry.lookupEntry(codesets.getCharCodeSet());
if (charSet == null)
throw wrapper.unknownCodeset( charSet ) ;
return CodeSetConversion.impl().getCTBConverter(charSet,
isLittleEndian(),
false);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:29,代码来源:CDROutputObject.java
示例4: createWCharCTBConverter
import com.sun.corba.se.impl.encoding.OSFCodeSetRegistry; //导入依赖的package包/类
protected CodeSetConversion.CTBConverter createWCharCTBConverter() {
if (getGIOPVersion().equals(GIOPVersion.V1_0))
throw wrapper.wcharDataInGiop10(CompletionStatus.COMPLETED_MAYBE);
// In the case of GIOP 1.1, we take the byte order of the stream and don't
// use byte order markers since we're limited to a 2 byte fixed width encoding.
if (getGIOPVersion().equals(GIOPVersion.V1_1))
return CodeSetConversion.impl().getCTBConverter(OSFCodeSetRegistry.UTF_16,
isLittleEndian(),
false);
// Assume anything else meets GIOP 1.2 requirements
//
// Use byte order markers? If not, use big endian in GIOP 1.2.
// (formal 00-11-03 15.3.16)
boolean useBOM = ((ORB)orb()).getORBData().useByteOrderMarkersInEncapsulations();
return CodeSetConversion.impl().getCTBConverter(OSFCodeSetRegistry.UTF_16,
false,
useBOM);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:23,代码来源:EncapsOutputStream.java
注:本文中的com.sun.corba.se.impl.encoding.OSFCodeSetRegistry类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论