本文整理汇总了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
}
示例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() ;
}
示例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 );
}