org.omg.PortableInterceptor

Class ORBIdHelper

public abstract class ORBIdHelper extends Object

The ORB Id is defined in OMG specification just as a narrow (not wide) string. As such, the ORB Id needs no helper, but one is included in the API anyway.

Since: 1.5

Method Summary
static Stringextract(Any a)
Extract the ORB Id from Any ((uses {@link Any#extract_string}).
static Stringid()
Return the ORB Id repository id.
static voidinsert(Any a, String that)
Insert the ORB Id into Any (uses {@link Any#insert_string}).
static Stringread(InputStream input)
Calls {@link InputStream#read_string()}.
static TypeCodetype()
Return an alias typecode.
static voidwrite(OutputStream output, String value)
Calls {@link OutputStream#write_string(String)}.

Method Detail

extract

public static String extract(Any a)
Extract the ORB Id from Any ((uses {@link Any#extract_string}).

Parameters: a the Any to extract from.

id

public static String id()
Return the ORB Id repository id.

Returns: "IDL:omg.org/PortableInterceptor/ORBId:1.0", always.

insert

public static void insert(Any a, String that)
Insert the ORB Id into Any (uses {@link Any#insert_string}).

Parameters: a the Any to insert into. that the string to insert.

read

public static String read(InputStream input)
Calls {@link InputStream#read_string()}.

Parameters: input the stream to read from.

type

public static TypeCode type()
Return an alias typecode.

write

public static void write(OutputStream output, String value)
Calls {@link OutputStream#write_string(String)}.

Parameters: output the stream to write into. value the string (ORB Id) value to write.