org.omg.IOP.CodecHolder Maven / Gradle / Ivy
package org.omg.IOP;
/**
* org/omg/IOP/CodecHolder.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /home/jenkins/agent/workspace/orb-release-build/omgapi/src/main/idl/IOP.idl
* Sunday, February 14, 2021 7:42:42 PM GMT
*/
/**
* The formats of IOR components and service context data used by ORB
* services are often defined as CDR encapsulations encoding instances
* of IDL defined data types. The Codec
provides a mechanism
* to transfer these components between their IDL data types and their CDR
* encapsulation representations.
*
* A Codec
is obtained from the CodecFactory
.
* The CodecFactory
is obtained through a call to
* ORB.resolve_initial_references( "CodecFactory" )
.
*/
public final class CodecHolder implements org.omg.CORBA.portable.Streamable
{
public org.omg.IOP.Codec value = null;
public CodecHolder ()
{
}
public CodecHolder (org.omg.IOP.Codec initialValue)
{
value = initialValue;
}
public void _read (org.omg.CORBA.portable.InputStream i)
{
value = org.omg.IOP.CodecHelper.read (i);
}
public void _write (org.omg.CORBA.portable.OutputStream o)
{
org.omg.IOP.CodecHelper.write (o, value);
}
public org.omg.CORBA.TypeCode _type ()
{
return org.omg.IOP.CodecHelper.type ();
}
}