org.omg.PortableInterceptor

Class 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

Method Summary
static byte[]extract(Any a)
Extract the Object Id from Any.
static Stringid()
Return the Object Id repository id.
static voidinsert(Any a, byte[] that)
Insert the Object Id into Any.
static byte[]read(InputStream input)
Read the Object Id as a byte array.
static TypeCodetype()
Return an alias typecode (an alias of the octet sequence).
static voidwrite(OutputStream output, byte[] value)
Write the Object Id as a byte array.

Method Detail

extract

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

Parameters: a the Any to extract from.

id

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

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

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.

read

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

Parameters: input the stream to read from.

type

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

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.