org.omg.CORBA

Class ValueBaseHolder

public class ValueBaseHolder extends Object implements Streamable

A holder to store a {@link ValueBase} that is handled as {@link Serializable} here.

Since: 1.3

Field Summary
Serializablevalue
A stored value of the value base type.
Constructor Summary
ValueBaseHolder()
Create an unitialised instance.
ValueBaseHolder(Serializable initial)
Create an instance, initialised into the given value.
Method Summary
void_read(InputStream input)
Read fill in the value field by reading an instance from the given input stream.
TypeCode_type()
Get the typecode of the stored instance.
void_write(OutputStream output)
Write the stored instance to the given output stream.

Field Detail

value

public Serializable value
A stored value of the value base type.

Constructor Detail

ValueBaseHolder

public ValueBaseHolder()
Create an unitialised instance.

ValueBaseHolder

public ValueBaseHolder(Serializable initial)
Create an instance, initialised into the given value.

Parameters: initial an initial value.

Method Detail

_read

public void _read(InputStream input)
Read fill in the value field by reading an instance from the given input stream. Uses {@link ValueBaseHelper}

Parameters: input a stream to read from.

_type

public TypeCode _type()
Get the typecode of the stored instance. Uses {@link ValueBaseHelper}

_write

public void _write(OutputStream output)
Write the stored instance to the given output stream. Uses {@link ValueBaseHelper}

Parameters: output a stream to write to.