Java Code Examples for com.sun.corba.se.spi.ior.iiop.GIOPVersion#getInstance()

The following examples show how to use com.sun.corba.se.spi.ior.iiop.GIOPVersion#getInstance() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
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
}
 
Example 2
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() ;
}
 
Example 3
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() ;
}
 
Example 4
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() ;
}
 
Example 5
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
}
 
Example 6
Source Project: JDKSourceCode1.8   File: Message_1_2.java    License: MIT License 5 votes vote down vote up
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
}
 
Example 7
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() ;
}
 
Example 8
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() ;
}
 
Example 9
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
}
 
Example 10
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() ;
}
 
Example 11
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
}
 
Example 12
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() ;
}
 
Example 13
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
}
 
Example 14
/**
 * 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 );
}
 
Example 15
/**
 * 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 );
}
 
Example 16
/**
 * 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 );
}
 
Example 17
/**
 * 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 );
}
 
Example 18
/**
 * 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 );
}
 
Example 19
/**
 * 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 );
}
 
Example 20
/**
 * 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 );
}