org.omg.IOP

Class TaggedComponentHelper

public abstract class TaggedComponentHelper extends Object

A helper operations for the {@link TaggedComponent}.
Method Summary
static TaggedComponentextract(Any any)
Extract the TaggedComponent from given Any.
static Stringid()
Get the TaggedComponent repository id.
static voidinsert(Any any, TaggedComponent that)
Insert the TaggedComponent into the given Any.
static TaggedComponentread(InputStream input)
Read the structure from the CDR intput stream.
static TypeCodetype()
Create the TaggedComponent typecode (structure, named "TaggedComponent").
static voidwrite(OutputStream output, TaggedComponent value)
Write the structure to the CDR output stream.

Method Detail

extract

public static TaggedComponent extract(Any any)
Extract the TaggedComponent from given Any. This method uses the TaggedComponentHolder.

Throws: BAD_OPERATION if the passed Any does not contain TaggedComponent.

id

public static String id()
Get the TaggedComponent repository id.

Returns: "IDL:omg.org/IOP/TaggedComponent:1.0", always.

insert

public static void insert(Any any, TaggedComponent that)
Insert the TaggedComponent into the given Any. This method uses the TaggedComponentHolder.

Parameters: any the Any to insert into. that the TaggedComponent to insert.

read

public static TaggedComponent read(InputStream input)
Read the structure from the CDR intput stream. Expects the integer identifier of the tag, then the size of the tag data and then the specified number of bytes, representing the data of the tag.

Parameters: input a org.omg.CORBA.portable stream to read from.

type

public static TypeCode type()
Create the TaggedComponent typecode (structure, named "TaggedComponent"). The typecode states that the structure contains the following fields: tag, component_data.

write

public static void write(OutputStream output, TaggedComponent value)
Write the structure to the CDR output stream. Writes the integer identifier of the tag, then the size of the tag data and then the specified number of bytes, representing the data of the tag.

Parameters: output a org.omg.CORBA.portable stream stream to write into. value a value to write.