org.omg.PortableInterceptor
Class ObjectIdHelper

java.lang.Object
  extended by org.omg.PortableInterceptor.ObjectIdHelper

public abstract class ObjectIdHelper
extends Object

The Object Id of this package is defined in OMG specification as a byte array. As such, the Object Id needs no helper, but one is included in the API anyway.

Since:
1.5

Constructor Summary
ObjectIdHelper()
           
 
Method Summary
static byte[] extract(Any a)
          Extract the Object Id from Any.
static String id()
          Return the Object Id repository id.
static void insert(Any a, byte[] that)
          Insert the Object Id into Any.
static byte[] read(InputStream input)
          Read the Object Id as a byte array.
static TypeCode type()
          Return an alias typecode (an alias of the octet sequence).
static void write(OutputStream output, byte[] value)
          Write the Object Id as a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIdHelper

public ObjectIdHelper()
Method Detail

insert

public static void insert(Any a,
                          byte[] that)
Insert the Object Id into Any.

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

extract

public static byte[] extract(Any a)
Extract the Object Id from Any.

Parameters:
a - the Any to extract from.

type

public static TypeCode type()
Return an alias typecode (an alias of the octet sequence).


id

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

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

read

public static byte[] read(InputStream input)
Read the Object Id as a byte array.

Parameters:
input - the stream to read from.

write

public static void write(OutputStream output,
                         byte[] value)
Write the Object Id as a byte array.

Parameters:
output - the stream to write into.
value - the Object Id value to write.