org.omg.CSI
Class OIDHelper

java.lang.Object
  extended by org.omg.CSI.OIDHelper

public class OIDHelper
extends java.lang.Object

Helper class for : OID

Author:
OpenORB Compiler

Constructor Summary
OIDHelper()
           
 
Method Summary
static byte[] extract(org.omg.CORBA.Any a)
          Extract OID from an any
static java.lang.String id()
          Return the OID IDL ID
static void insert(org.omg.CORBA.Any a, byte[] t)
          Insert OID into an any
static byte[] read(org.omg.CORBA.portable.InputStream istream)
          Read OID from a marshalled stream
static org.omg.CORBA.TypeCode type()
          Return the OID TypeCode
static void write(org.omg.CORBA.portable.OutputStream ostream, byte[] value)
          Write OID into a marshalled stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OIDHelper

public OIDHelper()
Method Detail

insert

public static void insert(org.omg.CORBA.Any a,
                          byte[] t)
Insert OID into an any

Parameters:
a - an any
t - OID value

extract

public static byte[] extract(org.omg.CORBA.Any a)
Extract OID from an any

Parameters:
a - an any
Returns:
the extracted OID value

type

public static org.omg.CORBA.TypeCode type()
Return the OID TypeCode

Returns:
a TypeCode

id

public static java.lang.String id()
Return the OID IDL ID

Returns:
an ID

read

public static byte[] read(org.omg.CORBA.portable.InputStream istream)
Read OID from a marshalled stream

Parameters:
istream - the input stream
Returns:
the readed OID value

write

public static void write(org.omg.CORBA.portable.OutputStream ostream,
                         byte[] value)
Write OID into a marshalled stream

Parameters:
ostream - the output stream
value - OID value