|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.omg.CORBA.portable.OutputStream
org.omg.CORBA_2_3.portable.OutputStream
public abstract class 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.
Constructor Summary | |
---|---|
OutputStream()
|
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,
Class clz)
Writes a value type into the output stream, stating it is an instance of the given class. |
void |
write_value(Serializable value,
String repository_id)
Writes a value type into the output stream, stating it has the given repository id. |
Methods inherited from class java.io.OutputStream |
---|
close, flush, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputStream()
Method Detail |
---|
public void write_abstract_interface(Object an_interface)
ValueBase
interface. Also, the passed parameter is treated as value
it it does not implement CORBA Object.
an_interface
- an abstract interface to write.public void write_value(Serializable value)
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.
value
- a value type object to write.public void write_value(Serializable value, BoxedValueHelper helper)
CustomValue
(for user-defined writing method) or StreamableValue
(for standard writing using code, generated by IDL compiler).
value
- a value to write.helper
- a helper, responsible for the writing operation.public void write_value(Serializable value, Class clz)
CustomValue
(for user-defined writing method) or StreamableValue
(for standard writing using code, generated by IDL compiler).
value
- a value type object to write.public void write_value(Serializable value, String repository_id)
CustomValue
(for user-defined
writing method) or StreamableValue
(for standard writing using code,
generated by IDL compiler).
repository_id
- a repository id of the value type.value
- a value type object to write.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |