org.omg.PortableInterceptor
Class ORBIdHelper

java.lang.Object
  extended by org.omg.PortableInterceptor.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

Constructor Summary
ORBIdHelper()
           
 
Method Summary
static String extract(Any a)
          Extract the ORB Id from Any ((uses Any.extract_string()).
static String id()
          Return the ORB Id repository id.
static void insert(Any a, String that)
          Insert the ORB Id into Any (uses Any.insert_string(java.lang.String)).
static String read(InputStream input)
          Calls InputStream.read_string().
static TypeCode type()
          Return an alias typecode.
static void write(OutputStream output, String value)
          Calls OutputStream.write_string(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORBIdHelper

public ORBIdHelper()
Method Detail

insert

public static void insert(Any a,
                          String that)
Insert the ORB Id into Any (uses Any.insert_string(java.lang.String)).

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

extract

public static String extract(Any a)
Extract the ORB Id from Any ((uses Any.extract_string()).

Parameters:
a - the Any to extract from.

type

public static TypeCode type()
Return an alias typecode.


id

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

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

read

public static String read(InputStream input)
Calls InputStream.read_string().

Parameters:
input - the stream to read from.

write

public static void write(OutputStream output,
                         String value)
Calls OutputStream.write_string(String).

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