org.omg.IOP
Class IORHelper
public abstract
class
IORHelper
extends Object
A helper operations for the structure
IOR.
Method Summary |
static IOR | extract(Any any)
Extract the IOR from given Any.
|
static String | id()
Get the IOR repository id.
|
static void | insert(Any any, IOR that)
Insert the IOR into the given Any. |
static IOR | read(InputStream input)
Read the structure from the CDR intput stream. |
static TypeCode | type()
Create the IOR typecode (structure, named "IOR"). |
static void | write(OutputStream output, IOR value)
Write the structure to the CDR output stream. |
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.
public static String id()
Get the IOR repository id.
Returns: "IDL:omg.org/IOP/IOR:1.0", always.
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.
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.
public static TypeCode type()
Create the IOR typecode (structure, named "IOR"). The typecode states that
the structure contains the following fields: type_id, profiles.
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.