public abstract class ValueBaseHelper extends Object
ValueBase
).Constructor and Description |
---|
ValueBaseHelper() |
Modifier and Type | Method and Description |
---|---|
static Serializable |
extract(Any a)
Extract the value type from the given Any.
|
static String |
id()
Return the value base helper repository id.
|
static void |
insert(Any a,
Serializable that)
Insert the value base that is Serializable into
the given Any.
|
static Serializable |
read(InputStream input)
Read the value base from the given input stream.
|
static TypeCode |
type()
Get the typecode of the value type.
|
static void |
write(OutputStream output,
Serializable value)
Write the value base into the given stream.
|
public ValueBaseHelper()
public static Serializable extract(Any a)
a
- the Any to extract from.public static String id()
public static void insert(Any a, Serializable that)
a
- the Any to insert into.that
- the value base to insert.public static Serializable read(InputStream input)
input
- a stream to read from.MARSHAL
- if the reading has failed due any reason.public static TypeCode type()
public static void write(OutputStream output, Serializable value)
CustomMarshal
,
the helper uses CustomMarshal.marshal(org.omg.CORBA.DataOutputStream)
to write the content in a user defined way. Otherwise,
this implementation initialises the ObjectOutputStream
and writes through it.output
- a stream to write to.value
- a value to write.MARSHAL
- if the writing failed due any reason.