org.omg.IOP
Class CodecFactoryHelper

java.lang.Object
  extended by org.omg.IOP.CodecFactoryHelper

public abstract class CodecFactoryHelper
extends Object

The helper operations for the CORBA object CodecFactory.


Constructor Summary
CodecFactoryHelper()
           
 
Method Summary
static CodecFactory extract(Any any)
          Extract the CodecFactory from given Any.
static String id()
          Get the CodecFactory repository id.
static void insert(Any any, CodecFactory that)
          Insert the CodecFactory into the given Any.
static CodecFactory narrow(Object obj)
          Cast the passed object into the CodecFactory.
static CodecFactory read(InputStream input)
          This should read the CodecFactory from the CDR intput stream, but this is not possible as CodecFactory is a local object.
static TypeCode type()
          Get the type code of the CodecFactory.
static CodecFactory unchecked_narrow(Object obj)
          Narrow the given object to the CodecFactory.
static void write(OutputStream output, CodecFactory value)
          This should write the CodecFactory from the CDR intput stream, but this is not possible as CodecFactory is a local object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodecFactoryHelper

public CodecFactoryHelper()
Method Detail

type

public static TypeCode type()
Get the type code of the CodecFactory.


insert

public static void insert(Any any,
                          CodecFactory that)
Insert the CodecFactory into the given Any.

Parameters:
any - the Any to insert into.
that - the CodecFactory to insert.

extract

public static CodecFactory extract(Any any)
Extract the CodecFactory from given Any.

Throws:
BAD_OPERATION - if the passed Any does not contain CodecFactory.

id

public static String id()
Get the CodecFactory repository id.

Returns:
"IDL:omg.org/IOP/CodecFactory:1.0", always.

narrow

public static CodecFactory narrow(Object obj)
Cast the passed object into the CodecFactory. As the CodecFactory is a local object, this is not different from the java type cast.

Throws:
BAD_PARAM - if the passed object is not a CodecFactory.

unchecked_narrow

public static CodecFactory unchecked_narrow(Object obj)
Narrow the given object to the CodecFactory. For the objects that are always local, this operation does not differ from the ordinary narrow(org.omg.CORBA.Object) (ClassCastException will be thrown if narrowing something different). See OMG issue 4158.

Parameters:
obj - the object to cast.
Returns:
the casted CodecFactory.
Since:
1.5

read

public static CodecFactory read(InputStream input)
This should read the CodecFactory from the CDR intput stream, but this is not possible as CodecFactory is a local object.

Throws:
MARSHAL, - minor code 0 and incomplete, always.

write

public static void write(OutputStream output,
                         CodecFactory value)
This should write the CodecFactory from the CDR intput stream, but this is not possible as CodecFactory is a local object.

Throws:
MARSHAL, - minor code 0 and incomplete, always.