org.omg.CORBA.portable
Class OutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.omg.CORBA.portable.OutputStream
All Implemented Interfaces:
Closeable, Flushable
Direct Known Subclasses:
OutputStream

public abstract class OutputStream
extends OutputStream

This class is used to write CORBA IDL data types.


Constructor Summary
OutputStream()
           
 
Method Summary
abstract  InputStream create_input_stream()
          Returns an input stream with the same buffer.
 ORB orb()
          Return the Object Request Broker that has created this stream.
abstract  void write_any(Any x)
          Write CORBA Any.
abstract  void write_boolean_array(boolean[] x, int ofs, int len)
          Write CORBA booelan[].
abstract  void write_boolean(boolean x)
          Write CORBA boolean.
abstract  void write_char_array(char[] chars, int offset, int length)
          Write CORBA char[].
abstract  void write_char(char x)
          Write CORBA char.
 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.
abstract  void write_double_array(double[] x, int ofs, int len)
          Write CORBA double[].
abstract  void write_double(double x)
          Write CORBA double.
 void write_fixed(BigDecimal fixed)
          Should write a BigDecimal number, but, following specification, it does not and must be overridden to get a functionality.
abstract  void write_float_array(float[] x, int ofs, int len)
          Write CORBA float[].
abstract  void write_float(float x)
          Write CORBA float.
abstract  void write_long_array(int[] x, int ofs, int len)
          Write CORBA long[].
abstract  void write_long(int x)
          Write CORBA long that is mapped into java int.
abstract  void write_longlong_array(long[] x, int ofs, int len)
          Write CORBA long long [].
abstract  void write_longlong(long x)
          Write CORBA long long that is mapped into java long.
abstract  void write_Object(Object x)
          Write CORBA (not java) Object.
abstract  void write_octet_array(byte[] x, int ofs, int len)
          Write CORBA octet[].
abstract  void write_octet(byte x)
          Write CORBA octed that is mapped into java byte
 void write_Principal(Principal principal)
          Deprecated. by CORBA 2.2
abstract  void write_short_array(short[] x, int ofs, int len)
          Write CORBA short[].
abstract  void write_short(short x)
          Write CORBA short.
abstract  void write_string(String x)
          Write CORBA string.
abstract  void write_TypeCode(TypeCode x)
          Write TypeCode.
abstract  void write_ulong_array(int[] x, int ofs, int len)
          Write array of CORBA unsigned longs.
abstract  void write_ulong(int x)
          Write unsigned CORBA long that is mapped into java int.
abstract  void write_ulonglong_array(long[] x, int ofs, int len)
          Write array of unsigned CORBA long-longs.
abstract  void write_ulonglong(long x)
          Write unsigned CORBA long long that is mapped into java long.
abstract  void write_ushort_array(short[] x, int ofs, int len)
          Write array of unsigned CORBA shorts.
abstract  void write_ushort(short x)
          Write unsigned CORBA short that is mapped into java short.
abstract  void write_wchar_array(char[] chars, int offset, int length)
          Write array of CORBA wchars.
abstract  void write_wchar(char x)
          Write CORBA wchar that is mapped into java char.
abstract  void write_wstring(String x)
          Write CORBA wstring that is mapped into java string.
 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.
 
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

OutputStream

public OutputStream()
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)
           throws IOException
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.

Specified by:
write in class OutputStream
Parameters:
n - an integer to write.
Throws:
NO_IMPLEMENT, - always.
IOException - in overriden methods.

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_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_TypeCode

public abstract void write_TypeCode(TypeCode x)
Write TypeCode.


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_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_long_array

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


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_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_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_ulong

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


write_ulong_array

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


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_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.