FileDocCategorySizeDatePackage
OutputStream.javaAPI DocJava SE 5 API9413Fri Aug 26 14:58:34 BST 2005org.omg.CORBA.portable

OutputStream

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.
version
1.13, 04/22/98
since
JDK1.2

Fields Summary
Constructors Summary
Methods Summary
public abstract InputStreamcreate_input_stream()
Returns an input stream with the same buffer.

return
an input stream with the same buffer.

public org.omg.CORBA.ORBorb()
Returns the ORB that created this OutputStream.

return
the ORB that created this OutputStream
see
portable package comments for unimplemented features

	throw new org.omg.CORBA.NO_IMPLEMENT();
    
public voidwrite(int b)
Writes an integer (length of arrays) onto this stream.

param
b the value to be written.
throws
java.io.IOException if there is an input/output error
see
portable package comments for unimplemented features

        throw new org.omg.CORBA.NO_IMPLEMENT();
    
public voidwrite_Context(org.omg.CORBA.Context ctx, org.omg.CORBA.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.

param
ctx a CORBA context
param
contexts a ContextList object containing the list of contexts to be written
see
portable package comments for unimplemented features

        throw new org.omg.CORBA.NO_IMPLEMENT();
    
public abstract voidwrite_Object(org.omg.CORBA.Object value)
Writes a CORBA Object on this output stream.

param
value the value to be written.

public voidwrite_Principal(org.omg.CORBA.Principal value)
Writes a Principle on this output stream.

param
value the value to be written.
deprecated
Deprecated by CORBA 2.2.

        throw new org.omg.CORBA.NO_IMPLEMENT();
    
public abstract voidwrite_TypeCode(org.omg.CORBA.TypeCode value)
Writes a TypeCode on this output stream.

param
value the value to be written.

public abstract voidwrite_any(org.omg.CORBA.Any value)
Writes an Any on this output stream.

param
value the value to be written.

public abstract voidwrite_boolean(boolean value)
Writes a boolean value to this stream.

param
value the value to be written.

public abstract voidwrite_boolean_array(boolean[] value, int offset, int length)
Writes an array of booleans on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_char(char value)
Writes a char value to this stream.

param
value the value to be written.

public abstract voidwrite_char_array(char[] value, int offset, int length)
Writes an array of chars on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_double(double value)
Writes a double value to this stream.

param
value the value to be written.

public abstract voidwrite_double_array(double[] value, int offset, int length)
Writes an array of doubles on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public voidwrite_fixed(java.math.BigDecimal value)
Writes a BigDecimal number.

param
value a BidDecimal--value to be written.

        throw new org.omg.CORBA.NO_IMPLEMENT();
    
public abstract voidwrite_float(float value)
Writes a float value to this stream.

param
value the value to be written.

public abstract voidwrite_float_array(float[] value, int offset, int length)
Writes an array of floats on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_long(int value)
Writes a CORBA long (i.e. Java int) value to this stream.

param
value the value to be written.

public abstract voidwrite_long_array(int[] value, int offset, int length)
Writes an array of CORBA longs (i.e. Java ints) on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_longlong(long value)
Writes a CORBA longlong (i.e. Java long) value to this stream.

param
value the value to be written.

public abstract voidwrite_longlong_array(long[] value, int offset, int length)
Writes an array of CORBA longlongs (i.e. Java longs) on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_octet(byte value)
Writes a CORBA octet (i.e. byte) value to this stream.

param
value the value to be written.

public abstract voidwrite_octet_array(byte[] value, int offset, int length)
Writes an array of CORBA octets (bytes) on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_short(short value)
Writes a short value to this stream.

param
value the value to be written.

public abstract voidwrite_short_array(short[] value, int offset, int length)
Writes an array of shorts on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_string(java.lang.String value)
Writes a string value to this stream.

param
value the value to be written.

public abstract voidwrite_ulong(int value)
Writes an unsigned CORBA long (i.e. Java int) value to this stream.

param
value the value to be written.

public abstract voidwrite_ulong_array(int[] value, int offset, int length)
Writes an array of unsigned CORBA longs (i.e. Java ints) on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_ulonglong(long value)
Writes an unsigned CORBA longlong (i.e. Java long) value to this stream.

param
value the value to be written.

public abstract voidwrite_ulonglong_array(long[] value, int offset, int length)
Writes an array of unsigned CORBA longlongs (i.e. Java ints) on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_ushort(short value)
Writes an unsigned short value to this stream.

param
value the value to be written.

public abstract voidwrite_ushort_array(short[] value, int offset, int length)
Writes an array of unsigned shorts on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_wchar(char value)
Writes a wide char value to this stream.

param
value the value to be written.

public abstract voidwrite_wchar_array(char[] value, int offset, int length)
Writes an array of wide chars on this output stream.

param
value the array to be written.
param
offset offset on the stream.
param
length length of buffer to write.

public abstract voidwrite_wstring(java.lang.String value)
Writes a wide string value to this stream.

param
value the value to be written.