org.omg.CORBA_2_3.portable
public abstract class InputStream extends InputStream
ValueFactory
, needs it as a parameter.
However since 1.3 all methods, declared as returning an
org.omg.CORBA.portable.InputStream actually return the instance of this
derived class and the new methods are accessible after the casting
operation.Constructor and Description |
---|
InputStream() |
Modifier and Type | Method and Description |
---|---|
Object |
read_abstract_interface()
Read the abstract interface.
|
Object |
read_abstract_interface(Class clz)
Read the abstract interface, corresponding to the passed type.
|
Serializable |
read_value()
Read a value type structure, extracting the repository id
from the input stream itself.
|
Serializable |
read_value(BoxedValueHelper helper)
Use the provided boxed value helper to read the value.
|
Serializable |
read_value(Class clz)
Read a value type structure, corresponing to the passed type.
|
Serializable |
read_value(Serializable unitialised_value)
Read a value type structure content, when the unitialised
instance is passed as a parameter.
|
Serializable |
read_value(String repository_id)
Read a value type structure, having the given repository id.
|
orb, read_any, read_boolean_array, read_boolean, read_char_array, read_char, read_Context, read_double_array, read_double, read_fixed, read_float_array, read_float, read_long_array, read_long, read_longlong_array, read_longlong, read_Object, read_Object, read_octet_array, read_octet, read_Principal, read_short_array, read_short, read_string, read_TypeCode, read_ulong_array, read_ulong, read_ulonglong_array, read_ulonglong, read_ushort_array, read_ushort, read_wchar_array, read_wchar, read_wstring, read
available, close, mark, markSupported, read, read, reset, skip
public InputStream()
public Object read_abstract_interface()
InputStream.read_Object()
(for false)
or to read_value()
(for true).public Object read_abstract_interface(Class clz)
InputStream.read_Object(Class)
(for false)
or to read_value(Class)
(for true).clz
- a base class for the abstract interface.public Serializable read_value()
OutputStream
of this
implementation always stores the repository id.
The casts the streams ORB into a CORBA 2.3 ORB and then
searched for a suitable value factory, where it delegates
the functionality.
If you know the exact class or can create an unitialised instance
of the value type, it is recommended (faster) to use
read_value(Class)
or read_value(Serializable)
instead.public Serializable read_value(Class clz)
CustomMarshal
for the user-defined reading operations or StreamableValue
for the standard (generated by IDL compiler) reading operations.
Also, it must have the parameterless constructor to create a new
instance.clz
- a base class for a value type.public Serializable read_value(Serializable unitialised_value)
CustomMarshal
for the user-defined reading operations or StreamableValue
for the standard (generated by IDL compiler) reading operations.unitialised_value
- the unitialised value.public Serializable read_value(String repository_id)
read_value(Class)
or read_value(Serializable)
instead.repository_id
- a repository id of the value type.public Serializable read_value(BoxedValueHelper helper)
helper
- a helper for reading the value from the stream.