org.omg.CORBA.portable

Class OutputStream

Implemented Interfaces:
AutoCloseable, Closeable, Flushable
Known Direct Subclasses:
OutputStream

public abstract class OutputStream
extends OutputStream

This class is used to write CORBA IDL data types.

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.
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.
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_Object(Object x)
Write CORBA (not java) Object.
void
write_Principal(Principal principal)
Deprecated. by CORBA 2.2
abstract void
write_TypeCode(TypeCode x)
Write TypeCode.
abstract void
write_any(Any x)
Write CORBA Any.
abstract void
write_boolean(boolean x)
Write CORBA boolean.
abstract void
write_boolean_array(boolean[] x, int ofs, int len)
Write CORBA booelan[].
abstract void
write_char(char x)
Write CORBA char.
abstract void
write_char_array(char[] chars, int offset, int length)
Write CORBA char[].
abstract void
write_double(double x)
Write CORBA double.
abstract void
write_double_array(double[] x, int ofs, int len)
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(float x)
Write CORBA float.
abstract void
write_float_array(float[] x, int ofs, int len)
Write CORBA float[].
abstract void
write_long(int x)
Write CORBA long that is mapped into java int.
abstract void
write_long_array(int[] x, int ofs, int len)
Write CORBA long[].
abstract void
write_longlong(long x)
Write CORBA long long that is mapped into java long.
abstract void
write_longlong_array(long[] x, int ofs, int len)
Write CORBA long long [].
abstract void
write_octet(byte x)
Write CORBA octed that is mapped into java byte
abstract void
write_octet_array(byte[] x, int ofs, int len)
Write CORBA octet[].
abstract void
write_short(short x)
Write CORBA short.
abstract void
write_short_array(short[] x, int ofs, int len)
Write CORBA short[].
abstract void
write_string(String x)
Write CORBA string.
abstract void
write_ulong(int x)
Write unsigned CORBA long that is mapped into java int.
abstract void
write_ulong_array(int[] x, int ofs, int len)
Write array of CORBA unsigned longs.
abstract void
write_ulonglong(long x)
Write unsigned CORBA long long that is mapped into java long.
abstract void
write_ulonglong_array(long[] x, int ofs, int len)
Write array of unsigned CORBA long-longs.
abstract void
write_ushort(short x)
Write unsigned CORBA short that is mapped into java short.
abstract void
write_ushort_array(short[] x, int ofs, int len)
Write array of unsigned CORBA shorts.
abstract void
write_wchar(char x)
Write CORBA wchar that is mapped into java char.
abstract void
write_wchar_array(char[] chars, int offset, int length)
Write array of CORBA wchars.
abstract void
write_wstring(String x)
Write CORBA wstring that is mapped into java string.

Methods inherited from class java.io.OutputStream

close, flush, write, write, write

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

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.
Overrides:
write in interface OutputStream
Parameters:
n - an integer to write.
Throws:
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.

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

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

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.

OutputStream.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.