org.omg.CORBA

Class ServiceDetailHelper

public abstract class ServiceDetailHelper extends Object

The helper operations on the Service Detail.
Method Summary
static ServiceDetailextract(Any a)
Extract the service detail info from the given {@link Any}
static Stringid()
Get the service detail repository id.
static voidinsert(Any a, ServiceDetail that)
Insert the service detail into the given {@link Any}.
static ServiceDetailread(InputStream istream)
Read the service detail information from the given CDR intput stream.
static TypeCodetype()
Get the typecode of the service detail, assuming to be it a structure with the two fields.
static voidwrite(OutputStream ostream, ServiceDetail value)
Write the service detail data to the given CDR output stream.

Method Detail

extract

public static ServiceDetail extract(Any a)
Extract the service detail info from the given {@link Any}

Parameters: a the Any to extract from.

Returns: the extracted detail.

Throws: BAD_OPERATION if the parameter holds something different from the ServiceDetail.

id

public static String id()
Get the service detail repository id.

Returns: the service detail repository id, IDL:omg.org/CORBA/ServiceDetail:1.0, always.

insert

public static void insert(Any a, ServiceDetail that)
Insert the service detail into the given {@link Any}.

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

read

public static ServiceDetail read(InputStream istream)
Read the service detail information from the given CDR intput stream. First reads the type, then the flexible length byte sequence.

Parameters: istream a stram to read from.

Returns: the loaded service detail.

type

public static TypeCode type()
Get the typecode of the service detail, assuming to be it a structure with the two fields.

Returns: the newly created or cached typecode value.

write

public static void write(OutputStream ostream, ServiceDetail value)
Write the service detail data to the given CDR output stream. Writes the detail type first, then the detail type data as the variable length byte sequence.

Parameters: ostream a stream to write into. value a value to write.