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.
Method Summary |
void | write_abstract_interface(Object an_interface)
Writes an abstract interface to the stream. |
void | write_value(Serializable value)
Writes a value type into the output stream.
|
void | write_value(Serializable value, BoxedValueHelper helper)
Write value to the stream using the boxed value helper.
|
void | write_value(Serializable value, String repository_id)
Writes a value type into the output stream, stating it has the given
repository id.
|
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
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.
public void write_value(Serializable value)
Writes a value type into the output stream.
The value type must implement either CustomValue (for user-defined
writing method) or 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.
public void write_value(Serializable value, BoxedValueHelper helper)
Write value to the stream using the boxed value helper.
The value type must implement either CustomValue
(for user-defined writing method) or StreamableValue
(for standard writing using code, generated by IDL compiler).
Parameters: value a value to write. helper a helper, responsible for the writing operation.
public void write_value(Serializable value, String repository_id)
Writes a value type into the output stream, stating it has the given
repository id.
The value type must implement either CustomValue (for user-defined
writing method) or 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.