org.omg.CORBA.portable

Class InputStream

Implemented Interfaces:
Closeable
Known Direct Subclasses:
InputStream

public abstract class InputStream
extends InputStream

This class is used to read CORBA IDL data types.

Method Summary

ORB
orb()
Return the Object Request Broker that has created this stream.
int
read()
Should read from the stream, but following specification it does not.
Context
read_Context()
This should read the CORBA context, but following the 1.4 API specification, it must not be implemented.
abstract Object
read_Object()
Read a CORBA (not java) object
Object
read_Object(Class<T> klass)
Read a CORBA object that is an instance of the class, passed as an argument.
Principal
read_Principal()
Deprecated. by CORBA 2.2
abstract TypeCode
read_TypeCode()
Read a TypeCode.
abstract Any
read_any()
Read a CORBA Any.
abstract boolean
read_boolean()
Read a CORBA boolean.
abstract void
read_boolean_array(boolean[] value, int offset, int length)
Read a and array of CORBA boolean values.
abstract char
read_char()
Read a CORBA char.
abstract void
read_char_array(char[] value, int offset, int length)
Read a and array of CORBA characters.
abstract double
read_double()
Read a CORBA double.
abstract void
read_double_array(double[] value, int offset, int length)
Read a and array of CORBA doubles.
BigDecimal
read_fixed()
Read a CORBA fixed.
abstract float
read_float()
Read a CORBA float.
abstract void
read_float_array(float[] value, int offset, int length)
Read a and array of CORBA float.
abstract int
read_long()
Read a CORBA long that is mapped into java int.
abstract void
read_long_array(int[] value, int offset, int length)
Read a and array of CORBA longs.
abstract long
read_longlong()
Read a CORBA long long that is mapped into java long.
abstract void
read_longlong_array(long[] value, int offset, int length)
Read an array of CORBA long long
abstract byte
read_octet()
Read a CORBA octed that is mapped into java byte.
abstract void
read_octet_array(byte[] value, int offset, int length)
Read a and array of CORBA octets that are mapped into java array of bytes.
abstract short
read_short()
Read a CORBA short.
abstract void
read_short_array(short[] value, int offset, int length)
abstract String
read_string()
Read a CORBA string that is mapped into java String.
abstract int
read_ulong()
Read a CORBA unsigned long that is mapped into java int.
abstract void
read_ulong_array(int[] value, int offset, int length)
Read an array of CORBA unsigned long.
abstract long
read_ulonglong()
Read a and array of CORBA unsigned longs.
abstract void
read_ulonglong_array(long[] value, int offset, int length)
Read a and array of CORBA unsigned longs.
abstract short
read_ushort()
Read a CORBA unsigned short that is mapped into java short.
abstract void
read_ushort_array(short[] value, int offset, int length)
Read a and array of CORBA unsigned shorts.
abstract char
read_wchar()
Read a CORBA wchar that is mapped into java char.
abstract void
read_wchar_array(char[] value, int offset, int length)
abstract String
read_wstring()
Read a CORBA wstring that is mapped into java String.

Methods inherited from class java.io.InputStream

available, close, mark, markSupported, read, read, read, reset, skip

Methods inherited from class java.lang.Object

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

Method Details

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.

read

public int read()
            throws IOException
Should read from the stream, but following specification it does not.
Overrides:
read in interface InputStream
Throws:
IOException -

read_Context

public Context read_Context()
This should read the CORBA context, but following the 1.4 API specification, it must not be implemented.

read_Object

public abstract Object read_Object()
Read a CORBA (not java) object
Returns:
an object.

read_Object

public Object read_Object(Class<T> klass)
Read a CORBA object that is an instance of the class, passed as an argument. This method is not abstract, but following the specifications it must not be implemented.
Parameters:
klass - a CORBA class

read_Principal

public Principal read_Principal()

Deprecated. by CORBA 2.2

Read a CORBA Principal.
Returns:
a Principal.

read_TypeCode

public abstract TypeCode read_TypeCode()
Read a TypeCode.
Returns:
a TypeCode.

read_any

public abstract Any read_any()
Read a CORBA Any.
Returns:
an Any.

read_boolean

public abstract boolean read_boolean()
Read a CORBA boolean.
Returns:
a value, corresponding the value of the CORBA boolean.

read_boolean_array

public abstract void read_boolean_array(boolean[] value,
                                        int offset,
                                        int length)
Read a and array of CORBA boolean values.

read_char

public abstract char read_char()
Read a CORBA char.
Returns:
a value, corresponding the value of the CORBA char.

read_char_array

public abstract void read_char_array(char[] value,
                                     int offset,
                                     int length)
Read a and array of CORBA characters.

read_double

public abstract double read_double()
Read a CORBA double.
Returns:
a value, corresponding the value of the CORBA double.

read_double_array

public abstract void read_double_array(double[] value,
                                       int offset,
                                       int length)
Read a and array of CORBA doubles.

read_fixed

public BigDecimal read_fixed()
Read a CORBA fixed. This method is not abstract, but following the specifications it must not be implemented.

read_float

public abstract float read_float()
Read a CORBA float.
Returns:
a value, corresponding the value of the CORBA float.

read_float_array

public abstract void read_float_array(float[] value,
                                      int offset,
                                      int length)
Read a and array of CORBA float.

read_long

public abstract int read_long()
Read a CORBA long that is mapped into java int.
Returns:
an integer, corresponding the CORBA long.

read_long_array

public abstract void read_long_array(int[] value,
                                     int offset,
                                     int length)
Read a and array of CORBA longs.

read_longlong

public abstract long read_longlong()
Read a CORBA long long that is mapped into java long.
Returns:
a value, corresponding the CORBA long long

read_longlong_array

public abstract void read_longlong_array(long[] value,
                                         int offset,
                                         int length)
Read an array of CORBA long long

read_octet

public abstract byte read_octet()
Read a CORBA octed that is mapped into java byte.
Returns:
a byte, corresponding the CORBA octet.

read_octet_array

public abstract void read_octet_array(byte[] value,
                                      int offset,
                                      int length)
Read a and array of CORBA octets that are mapped into java array of bytes.

read_short

public abstract short read_short()
Read a CORBA short.
Returns:
a value, corresponding the value of the CORBA short.

read_short_array

public abstract void read_short_array(short[] value,
                                      int offset,
                                      int length)

read_string

public abstract String read_string()
Read a CORBA string that is mapped into java String.
Returns:
a value, corresponding the value of the CORBA string.

read_ulong

public abstract int read_ulong()
Read a CORBA unsigned long that is mapped into java int.
Returns:
an integer, matching the CORBA unsigned long.

read_ulong_array

public abstract void read_ulong_array(int[] value,
                                      int offset,
                                      int length)
Read an array of CORBA unsigned long.

read_ulonglong

public abstract long read_ulonglong()
Read a and array of CORBA unsigned longs.

read_ulonglong_array

public abstract void read_ulonglong_array(long[] value,
                                          int offset,
                                          int length)
Read a and array of CORBA unsigned longs.

read_ushort

public abstract short read_ushort()
Read a CORBA unsigned short that is mapped into java short.
Returns:
a value of the CORBA unsigned short.

read_ushort_array

public abstract void read_ushort_array(short[] value,
                                       int offset,
                                       int length)
Read a and array of CORBA unsigned shorts.

read_wchar

public abstract char read_wchar()
Read a CORBA wchar that is mapped into java char.
Returns:
a value, corresponding the value of the CORBA wchar.

read_wchar_array

public abstract void read_wchar_array(char[] value,
                                      int offset,
                                      int length)

read_wstring

public abstract String read_wstring()
Read a CORBA wstring that is mapped into java String.
Returns:
a string, corresponding CORBA wstring.

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