org.omg.CORBA

Class CurrentHelper

public abstract class CurrentHelper extends Object

The helper operations for the CORBA object {@link Current}.
Method Summary
static Currentextract(Any any)
Extract the Current from given Any.
static Stringid()
Get the Current repository id.
static voidinsert(Any any, Current that)
Insert the Current into the given Any.
static Currentnarrow(Object obj)
Cast the passed object into the Current.
static Currentread(InputStream input)
Read the Current from the CDR intput stream (IOR profile expected).
static TypeCodetype()
Get the type code of the {@link Current}.
static voidwrite(OutputStream output, Current value)
Write the Current to the CDR output stream (as IOR profile).

Method Detail

extract

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

Throws: BAD_OPERATION if the passed Any does not contain Current.

id

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

Returns: "IDL:omg.org/CORBA/Current:1.0", always.

insert

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

Parameters: any the Any to insert into. that the Current to insert.

narrow

public static Current narrow(Object obj)
Cast the passed object into the Current. If the object has a different java type, create an instance of the _CurrentStub, using the same delegate, as for the passed parameter. Hence, unlike java type cast, this method may return a different object, than has been passed.

Parameters: obj the object to narrow.

Returns: narrowed instance.

Throws: BAD_PARAM if the passed object is not a Current.

read

public static Current read(InputStream input)
Read the Current from the CDR intput stream (IOR profile expected).

Parameters: input a org.omg.CORBA.portable stream to read from.

type

public static TypeCode type()
Get the type code of the {@link Current}.

write

public static void write(OutputStream output, Current value)
Write the Current to the CDR output stream (as IOR profile).

Parameters: output a org.omg.CORBA.portable stream stream to write into. value a value to write.