org.omg.CORBA_2_3.portable
Class InputStream
public abstract
class
InputStream
extends InputStream
This class defines a new CDR input stream methods, added since
CORBA 2.3.
This class is abstract; no direct instances can be instantiated.
Also, up till v 1.4 inclusive there are no methods that would
return it, and only one unimplemented interface,
{@link org.omg.CORBA.portable.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.
public
Object read_abstract_interface()
Read the abstract interface. An abstract interface can be either
CORBA value type or CORBA object and is returned as an abstract
java.lang.Object.
As specified in OMG specification, this reads a single
boolean and then delegates either to {@link #read_Object()} (for false)
or to {@link #read_value()} (for true).
Returns: an abstract interface, unmarshaled from the stream.
Read the abstract interface, corresponding to the passed type.
An abstract interface can be either CORBA value type or CORBA
object and is returned as an abstract java.lang.Object.
As specified in OMG specification, this reads a single
boolean and then delegates either to {@link #read_Object(Class)} (for false)
or to {@link #read_value(Class)} (for true).
Parameters: clz a base class for the abstract interface.
Returns: an abstract interface, unmarshaled from the stream
Read a value type structure, extracting the repository id
from the input stream itself. The repository id is optional
in the value type record, but it must be present for this
method to succeed. The {@link 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
{@link #read_value(Class)} or {@link #read_value(Serializable)}
instead.
Returns: an value type structure, unmarshaled from the stream
Read a value type structure, corresponing to the passed type.
As the type is known, the repository Id in the input stream is
optional an not required. The codebase, if present, is also ignored.
The passed class must implement either {@link CustomMarshal}
for the user-defined reading operations or {@link StreamableValue}
for the standard (generated by IDL compiler) reading operations.
Also, it must have the parameterless constructor to create a new
instance.
Parameters: clz a base class for a value type.
Returns: an value type structure, unmarshaled from the stream
Read a value type structure content, when the unitialised
instance is passed as a parameter. It is a fastest method to read
a value type.
As the type is known, the repository Id in the input stream is
optional an not required. The codebase, if present, is also ignored.
The passed instance must implement either {@link CustomMarshal}
for the user-defined reading operations or {@link StreamableValue}
for the standard (generated by IDL compiler) reading operations.
Parameters: unitialised_value the unitialised value.
Returns: same value, filled in by the stream content.
Read a value type structure, having the given 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
{@link #read_value(Class)} or {@link #read_value(Serializable)}
instead.
Parameters: repository_id a repository id of the value type.
Returns: an value type structure, unmarshaled from the stream
Use the provided boxed value helper to read the value.
Parameters: helper a helper for reading the value from the stream.
Returns: an value type structure, unmarshaled from the stream.