org.omg.IOP
Class IORHelper

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

public abstract class IORHelper
extends Object

A helper operations for the structure IOR.


Constructor Summary
IORHelper()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IORHelper

public IORHelper()
Method Detail

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.


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.

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.

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.

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.