• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java OSFCodeSetRegistry类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java JAXRSUtils类代码示例发布时间:2022-05-22
下一篇:
Java DataEncryptionKeyProto类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap