org.omg.IOP

Class IORHelper

public abstract class IORHelper extends Object

A helper operations for the structure {@link IOR}.
Method Summary
static IORextract(Any any)
Extract the IOR from given Any.
static Stringid()
Get the IOR repository id.
static voidinsert(Any any, IOR that)
Insert the IOR into the given Any.
static IORread(InputStream input)
Read the structure from the CDR intput stream.
static TypeCodetype()
Create the IOR typecode (structure, named "IOR").
static voidwrite(OutputStream output, IOR value)
Write the structure to the CDR output stream.

Method Detail

extract

public static IOR extract(Any any)
Extract the IOR from given Any. This method uses the IORHolder.

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

id

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

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

insert

public static void insert(Any any, IOR that)
Insert the IOR into the given Any. This method uses the IORHolder.

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

read

public static IOR read(InputStream input)
Read the structure from the CDR intput stream. Expects repository it, then number of the tagged profiles and then the tagged profiles. Does not expect the endian indicator, present in the beginning of the stringified IOR references.

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

type

public static TypeCode type()
Create the IOR typecode (structure, named "IOR"). The typecode states that the structure contains the following fields: type_id, profiles.

write

public static void write(OutputStream output, IOR value)
Write the structure to the CDR output stream. Writes Expects repository it, then number of the tagged profiles and then the tagged profiles. Will not write the endian indicator, present in the beginning of the stringified IOR references.

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