org.omg.IOP
Class TaggedComponentHelper

java.lang.Object
  extended by org.omg.IOP.TaggedComponentHelper

public abstract class TaggedComponentHelper
extends Object

A helper operations for the TaggedComponent.


Constructor Summary
TaggedComponentHelper()
           
 
Method Summary
static TaggedComponent extract(Any any)
          Extract the TaggedComponent from given Any.
static String id()
          Get the TaggedComponent repository id.
static void insert(Any any, TaggedComponent that)
          Insert the TaggedComponent into the given Any.
static TaggedComponent read(InputStream input)
          Read the structure from the CDR intput stream.
static TypeCode type()
          Create the TaggedComponent typecode (structure, named "TaggedComponent").
static void write(OutputStream output, TaggedComponent value)
          Write the structure to the CDR output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggedComponentHelper

public TaggedComponentHelper()
Method Detail

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.


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.

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.

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.

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.