org.omg.IOP

Class CodecFactoryHelper

public abstract class CodecFactoryHelper extends Object

The helper operations for the CORBA object {@link CodecFactory}.
Method Summary
static CodecFactoryextract(Any any)
Extract the CodecFactory from given Any.
static Stringid()
Get the CodecFactory repository id.
static voidinsert(Any any, CodecFactory that)
Insert the CodecFactory into the given Any.
static CodecFactorynarrow(Object obj)
Cast the passed object into the CodecFactory.
static CodecFactoryread(InputStream input)
This should read the CodecFactory from the CDR intput stream, but this is not possible as CodecFactory is a local object.
static TypeCodetype()
Get the type code of the {@link CodecFactory}.
static CodecFactoryunchecked_narrow(Object obj)
Narrow the given object to the CodecFactory.
static voidwrite(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.

Method Detail

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.

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.

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.

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.

UNKNOWN: Suns implementation (1.4) throws this exception either.

type

public static TypeCode type()
Get the type code of the {@link 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 {@link #narrow} (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

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.

UNKNOWN: Suns implementation (1.4) throws this exception either.