public abstract class OutputStream extends OutputStream
OuputStream is the Java API for writing IDL types to CDR marshal streams. These methods are used by the ORB to marshal IDL types as well as to insert IDL types into Anys. The _array
versions of the methods can be directly used to write sequences and arrays of IDL types.
public OutputStream()
public abstract InputStream create_input_stream()
Returns an input stream with the same buffer.
public abstract void write_boolean(boolean value)
Writes a boolean value to this stream.
value
- the value to be written.public abstract void write_char(char value)
Writes a char value to this stream.
value
- the value to be written.public abstract void write_wchar(char value)
Writes a wide char value to this stream.
value
- the value to be written.public abstract void write_octet(byte value)
Writes a CORBA octet (i.e. byte) value to this stream.
value
- the value to be written.public abstract void write_short(short value)
Writes a short value to this stream.
value
- the value to be written.public abstract void write_ushort(short value)
Writes an unsigned short value to this stream.
value
- the value to be written.public abstract void write_long(int value)
Writes a CORBA long (i.e. Java int) value to this stream.
value
- the value to be written.public abstract void write_ulong(int value)
Writes an unsigned CORBA long (i.e. Java int) value to this stream.
value
- the value to be written.public abstract void write_longlong(long value)
Writes a CORBA longlong (i.e. Java long) value to this stream.
value
- the value to be written.public abstract void write_ulonglong(long value)
Writes an unsigned CORBA longlong (i.e. Java long) value to this stream.
value
- the value to be written.public abstract void write_float(float value)
Writes a float value to this stream.
value
- the value to be written.public abstract void write_double(double value)
Writes a double value to this stream.
value
- the value to be written.public abstract void write_string(String value)
Writes a string value to this stream.
value
- the value to be written.public abstract void write_wstring(String value)
Writes a wide string value to this stream.
value
- the value to be written.public abstract void write_boolean_array(boolean[] value, int offset, int length)
Writes an array of booleans on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_char_array(char[] value, int offset, int length)
Writes an array of chars on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_wchar_array(char[] value, int offset, int length)
Writes an array of wide chars on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_octet_array(byte[] value, int offset, int length)
Writes an array of CORBA octets (bytes) on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_short_array(short[] value, int offset, int length)
Writes an array of shorts on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_ushort_array(short[] value, int offset, int length)
Writes an array of unsigned shorts on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_long_array(int[] value, int offset, int length)
Writes an array of CORBA longs (i.e. Java ints) on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_ulong_array(int[] value, int offset, int length)
Writes an array of unsigned CORBA longs (i.e. Java ints) on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_longlong_array(long[] value, int offset, int length)
Writes an array of CORBA longlongs (i.e. Java longs) on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_ulonglong_array(long[] value, int offset, int length)
Writes an array of unsigned CORBA longlongs (i.e. Java ints) on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_float_array(float[] value, int offset, int length)
Writes an array of floats on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_double_array(double[] value, int offset, int length)
Writes an array of doubles on this output stream.
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public abstract void write_Object(Object value)
Writes a CORBA Object on this output stream.
value
- the value to be written.public abstract void write_TypeCode(TypeCode value)
Writes a TypeCode on this output stream.
value
- the value to be written.public abstract void write_any(Any value)
Writes an Any on this output stream.
value
- the value to be written.@Deprecated public void write_Principal(Principal value)
Deprecated. Deprecated by CORBA 2.2.
Writes a Principle on this output stream.
value
- the value to be written.public void write(int b) throws IOException
Writes an integer (length of arrays) onto this stream.
write
in class OutputStream
b
- the value to be written.IOException
- if there is an input/output errorportable
package comments for unimplemented featurespublic void write_fixed(BigDecimal value)
Writes a BigDecimal number.
value
- a BidDecimal--value to be written.public void write_Context(Context ctx, ContextList contexts)
Writes a CORBA context on this stream. The Context is marshaled as a sequence of strings. Only those Context values specified in the contexts parameter are actually written.
ctx
- a CORBA contextcontexts
- a ContextList
object containing the list of contexts to be writtenportable
package comments for unimplemented featurespublic ORB orb()
Returns the ORB that created this OutputStream.
portable
package comments for unimplemented features
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.