org.omg.DynamicAny

Class DynAnySeqHelper

public abstract class DynAnySeqHelper extends Object

A helper operations for the array of {@link DynAny} (DynAny[]). Following the 1.5 JDK specifications, DynAny (and hence an sequence of DynAny's) is always a local object, so the two methods of this helper ({@link #read} and {@link #write} are not in use, always throwing {@link MARSHAL}.

UNKNOWN: always throwing MARSHAL in read and write ensures compatibility with other popular implementations like Sun's.

Method Summary
static DynAny[]extract(Any any)
Extract the DynAnySeq from given Any.
static Stringid()
Get the DynAnySeq repository id.
static voidinsert(Any any, DynAny[] those)
Insert the DynAnySeq into the given Any.
static DynAny[]read(InputStream input)
The method should read this object from the CDR input stream, but (following the JDK 1.5 API) it does not.
static TypeCodetype()
static voidwrite(OutputStream output, DynAny[] value)
The method should write this object to the CDR input stream, but (following the JDK 1.5 API) it does not.

Method Detail

extract

public static DynAny[] extract(Any any)
Extract the DynAnySeq from given Any. This method uses the DynAnySeqHolder.

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

id

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

Returns: "IDL:omg.org/DynamicAny/DynAnySeq:1.0", always.

insert

public static void insert(Any any, DynAny[] those)
Insert the DynAnySeq into the given Any. This method uses the DynAnySeqHolder.

Parameters: any the Any to insert into. those the DynAny[] to insert.

read

public static DynAny[] read(InputStream input)
The method should read this object from the CDR input stream, but (following the JDK 1.5 API) it does not.

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

Throws: MARSHAL always.

UNKNOWN: Sun throws the same exception.

type

public static TypeCode type()

write

public static void write(OutputStream output, DynAny[] value)
The method should write this object to the CDR input stream, but (following the JDK 1.5 API) it does not.

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

Throws: MARSHAL always.

UNKNOWN: Sun throws the same exception.