当前位置: 首页>>代码示例>>Java>>正文


Java GIOPVersion.getInstance方法代码示例

本文整理汇总了Java中com.sun.corba.se.spi.ior.iiop.GIOPVersion.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java GIOPVersion.getInstance方法的具体用法?Java GIOPVersion.getInstance怎么用?Java GIOPVersion.getInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.corba.se.spi.ior.iiop.GIOPVersion的用法示例。


在下文中一共展示了GIOPVersion.getInstance方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: write

import com.sun.corba.se.spi.ior.iiop.GIOPVersion; //导入方法依赖的package包/类
public void write(org.omg.CORBA.portable.OutputStream ostream) {
    if (this.encodingVersion == Message.CDR_ENC_VERSION) {
        super.write(ostream);
        return;
    }
    GIOPVersion gv = this.GIOP_version; // save
    this.GIOP_version = GIOPVersion.getInstance((byte)13,
                                                this.encodingVersion);
    super.write(ostream);
    this.GIOP_version = gv; // restore
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:Message_1_2.java

示例2: IIOPProfileTemplateImpl

import com.sun.corba.se.spi.ior.iiop.GIOPVersion; //导入方法依赖的package包/类
public IIOPProfileTemplateImpl( InputStream istr )
{
    byte major = istr.read_octet() ;
    byte minor = istr.read_octet() ;
    giopVersion = GIOPVersion.getInstance( major, minor ) ;
    primary = new IIOPAddressImpl( istr ) ;
    orb = (ORB)(istr.orb()) ;
    // Handle any tagged components (if applicable)
    if (minor > 0)
        EncapsulationUtility.readIdentifiableSequence(
            this, orb.getTaggedComponentFactoryFinder(), istr ) ;

    makeImmutable() ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:IIOPProfileTemplateImpl.java

示例3: CDREncapsCodec

import com.sun.corba.se.spi.ior.iiop.GIOPVersion; //导入方法依赖的package包/类
/**
 * Creates a new codec implementation.  Uses the given ORB to create
 * CDRInputStreams when necessary.
 *
 * @param orb The ORB to use to create a CDRInputStream or CDROutputStream
 * @param major The major version of GIOP we are encoding for
 * @param minor The minor version of GIOP we are encoding for
 */
public CDREncapsCodec( ORB orb, int major, int minor ) {
    this.orb = orb;
    wrapper = ORBUtilSystemException.get(
        (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PROTOCOL ) ;

    giopVersion = GIOPVersion.getInstance( (byte)major, (byte)minor );
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:CDREncapsCodec.java


注:本文中的com.sun.corba.se.spi.ior.iiop.GIOPVersion.getInstance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。