org.omg.CORBA_2_3.portable
Class OutputStream
public abstract
class
OutputStream
extends OutputStream
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 directly.
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 void write_abstract_interface(
Object an_interface)
Writes an abstract interface to the stream. An abstract interface can be
eithe CORBA object or value type and is written as a union with the boolean
discriminator (false for objects, true for value types).
The object from value is separated by fact that all values implement the
{@link ValueBase} interface. Also, the passed parameter is treated as value
it it does not implement CORBA Object.
Parameters: an_interface an abstract interface to write.
Writes a value type into the output stream.
The value type must implement either {@link CustomValue} (for user-defined
writing method) or {@link StreamableValue} (for standard writing using code,
generated by IDL compiler).
The written record will have a repository id, matching the class of the
passed object. The codebase will not be written.
Parameters: value a value type object to write.
Write value to the stream using the boxed value helper.
The value type must implement either {@link CustomValue}
(for user-defined writing method) or {@link StreamableValue}
(for standard writing using code, generated by IDL compiler).
Parameters: value a value to write. helper a helper, responsible for the writing operation.
Writes a value type into the output stream, stating it is an
instance of the given class. The written record
will have a repository id, matching the passed class.
The codebase will not be written. It the object
being written is an instance of the different class, this results
writing two Id inheritance hierarchy.
The value type must implement either {@link CustomValue}
(for user-defined writing method) or {@link StreamableValue}
(for standard writing using code, generated by IDL compiler).
Parameters: value a value type object to write.
Writes a value type into the output stream, stating it has the given
repository id.
The value type must implement either {@link CustomValue} (for user-defined
writing method) or {@link StreamableValue} (for standard writing using code,
generated by IDL compiler).
Parameters: repository_id a repository id of the value type.
value a value type object to write.