org.omg.CORBA
Class ValueBaseHolder

java.lang.Object
  extended by org.omg.CORBA.ValueBaseHolder
All Implemented Interfaces:
Streamable

public class ValueBaseHolder
extends Object
implements Streamable

A holder to store a ValueBase that is handled as Serializable here.

Since:
1.3

Field Summary
 Serializable value
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 ValueBaseHelper

Specified by:
_read in interface Streamable
Parameters:
input - a stream to read from.

_type

public TypeCode _type()
Get the typecode of the stored instance. Uses ValueBaseHelper

Specified by:
_type in interface Streamable

_write

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

Specified by:
_write in interface Streamable
Parameters:
output - a stream to write to.