org.omg.CORBA.portable

Class OutputStream

public abstract class OutputStream extends OutputStream

This class is used to write CORBA IDL data types.
Method Summary
abstract InputStreamcreate_input_stream()
Returns an input stream with the same buffer.
ORBorb()
Return the Object Request Broker that has created this stream.
voidwrite(int n)
Should write an byte (lower 8 bits) to the output stream, but, following specification, it does not and must be overridden to get a functionality.
abstract voidwrite_any(Any x)
Write CORBA Any.
abstract voidwrite_boolean(boolean x)
Write CORBA boolean.
abstract voidwrite_boolean_array(boolean[] x, int ofs, int len)
Write CORBA booelan[].
abstract voidwrite_char(char x)
Write CORBA char.
abstract voidwrite_char_array(char[] chars, int offset, int length)
Write CORBA char[].
voidwrite_Context(Context context, ContextList contexts)
Should write a CORBA context to the output stream, but, following the 1.4 specification, it does not and must be overridden to get a functionality.
abstract voidwrite_double(double x)
Write CORBA double.
abstract voidwrite_double_array(double[] x, int ofs, int len)
Write CORBA double[].
voidwrite_fixed(BigDecimal fixed)
Should write a BigDecimal number, but, following specification, it does not and must be overridden to get a functionality.
abstract voidwrite_float(float x)
Write CORBA float.
abstract voidwrite_float_array(float[] x, int ofs, int len)
Write CORBA float[].
abstract voidwrite_long(int x)
Write CORBA long that is mapped into java int.
abstract voidwrite_longlong(long x)
Write CORBA long long that is mapped into java long.
abstract voidwrite_longlong_array(long[] x, int ofs, int len)
Write CORBA long long [].
abstract voidwrite_long_array(int[] x, int ofs, int len)
Write CORBA long[].
abstract voidwrite_octet(byte x)
Write CORBA octed that is mapped into java byte
abstract voidwrite_octet_array(byte[] x, int ofs, int len)
Write CORBA octet[].
abstract voidwrite_Object(Object x)
Write CORBA (not java) Object.
voidwrite_Principal(Principal principal)
Should write a principal to the output stream, but, following specification, it does not and must be overridden to get a functionality.
abstract voidwrite_short(short x)
Write CORBA short.
abstract voidwrite_short_array(short[] x, int ofs, int len)
Write CORBA short[].
abstract voidwrite_string(String x)
Write CORBA string.
abstract voidwrite_TypeCode(TypeCode x)
Write TypeCode.
abstract voidwrite_ulong(int x)
Write unsigned CORBA long that is mapped into java int.
abstract voidwrite_ulonglong(long x)
Write unsigned CORBA long long that is mapped into java long.
abstract voidwrite_ulonglong_array(long[] x, int ofs, int len)
Write array of unsigned CORBA long-longs.
abstract voidwrite_ulong_array(int[] x, int ofs, int len)
Write array of CORBA unsigned longs.
abstract voidwrite_ushort(short x)
Write unsigned CORBA short that is mapped into java short.
abstract voidwrite_ushort_array(short[] x, int ofs, int len)
Write array of unsigned CORBA shorts.
abstract voidwrite_wchar(char x)
Write CORBA wchar that is mapped into java char.
abstract voidwrite_wchar_array(char[] chars, int offset, int length)
Write array of CORBA wchars.
abstract voidwrite_wstring(String x)
Write CORBA wstring that is mapped into java string.

Method Detail

create_input_stream

public abstract InputStream create_input_stream()
Returns an input stream with the same buffer.

Returns: an input stream

orb

public ORB orb()
Return the Object Request Broker that has created this stream.

Returns: the ORB. This must be overridden, as the default method always returns null.

write

public void write(int n)
Should write an byte (lower 8 bits) to the output stream, but, following specification, it does not and must be overridden to get a functionality.

Parameters: n an integer to write.

Throws: NO_IMPLEMENT, always. IOException in overriden methods.

write_any

public abstract void write_any(Any x)
Write CORBA Any.

write_boolean

public abstract void write_boolean(boolean x)
Write CORBA boolean.

write_boolean_array

public abstract void write_boolean_array(boolean[] x, int ofs, int len)
Write CORBA booelan[].

write_char

public abstract void write_char(char x)
Write CORBA char.

write_char_array

public abstract void write_char_array(char[] chars, int offset, int length)
Write CORBA char[].

write_Context

public void write_Context(Context context, ContextList contexts)
Should write a CORBA context to the output stream, but, following the 1.4 specification, it does not and must be overridden to get a functionality.

Throws: NO_IMPLEMENT, always.

write_double

public abstract void write_double(double x)
Write CORBA double.

write_double_array

public abstract void write_double_array(double[] x, int ofs, int len)
Write CORBA double[].

write_fixed

public void write_fixed(BigDecimal fixed)
Should write a BigDecimal number, but, following specification, it does not and must be overridden to get a functionality.

Parameters: fixed a number to write

Throws: NO_IMPLEMENT, always.

write_float

public abstract void write_float(float x)
Write CORBA float.

write_float_array

public abstract void write_float_array(float[] x, int ofs, int len)
Write CORBA float[].

write_long

public abstract void write_long(int x)
Write CORBA long that is mapped into java int.

write_longlong

public abstract void write_longlong(long x)
Write CORBA long long that is mapped into java long.

write_longlong_array

public abstract void write_longlong_array(long[] x, int ofs, int len)
Write CORBA long long [].

write_long_array

public abstract void write_long_array(int[] x, int ofs, int len)
Write CORBA long[].

write_octet

public abstract void write_octet(byte x)
Write CORBA octed that is mapped into java byte

write_octet_array

public abstract void write_octet_array(byte[] x, int ofs, int len)
Write CORBA octet[].

write_Object

public abstract void write_Object(Object x)
Write CORBA (not java) Object.

write_Principal

public void write_Principal(Principal principal)

Deprecated: by CORBA 2.2

Should write a principal to the output stream, but, following specification, it does not and must be overridden to get a functionality.

Parameters: principal a Principal to write

Throws: NO_IMPLEMENT, always.

write_short

public abstract void write_short(short x)
Write CORBA short.

write_short_array

public abstract void write_short_array(short[] x, int ofs, int len)
Write CORBA short[].

write_string

public abstract void write_string(String x)
Write CORBA string.

write_TypeCode

public abstract void write_TypeCode(TypeCode x)
Write TypeCode.

write_ulong

public abstract void write_ulong(int x)
Write unsigned CORBA long that is mapped into java int.

write_ulonglong

public abstract void write_ulonglong(long x)
Write unsigned CORBA long long that is mapped into java long.

write_ulonglong_array

public abstract void write_ulonglong_array(long[] x, int ofs, int len)
Write array of unsigned CORBA long-longs.

write_ulong_array

public abstract void write_ulong_array(int[] x, int ofs, int len)
Write array of CORBA unsigned longs.

write_ushort

public abstract void write_ushort(short x)
Write unsigned CORBA short that is mapped into java short.

write_ushort_array

public abstract void write_ushort_array(short[] x, int ofs, int len)
Write array of unsigned CORBA shorts.

write_wchar

public abstract void write_wchar(char x)
Write CORBA wchar that is mapped into java char.

write_wchar_array

public abstract void write_wchar_array(char[] chars, int offset, int length)
Write array of CORBA wchars.

write_wstring

public abstract void write_wstring(String x)
Write CORBA wstring that is mapped into java string.