org.omg.CORBA.portable

Class InputStream

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.
Object
read_Object()
Read a CORBA (not java) object
Object
read_Object(Class klass)
Read a CORBA object that is an instance of the class, passed as an argument.
Principal
read_Principal()
Deprecated. by CORBA 2.2
TypeCode
read_TypeCode()
Read a TypeCode.
Any
read_any()
Read a CORBA Any.
boolean
read_boolean()
Read a CORBA boolean.
void
read_boolean_array(boolean[] value, int offset, int length)
Read a and array of CORBA boolean values.
char
read_char()
Read a CORBA char.
void
read_char_array(char[] value, int offset, int length)
Read a and array of CORBA characters.
double
read_double()
Read a CORBA double.
void
read_double_array(double[] value, int offset, int length)
Read a and array of CORBA doubles.
BigDecimal
read_fixed()
Read a CORBA fixed.
float
read_float()
Read a CORBA float.
void
read_float_array(float[] value, int offset, int length)
Read a and array of CORBA float.
int
read_long()
Read a CORBA long that is mapped into java int.
void
read_long_array(int[] value, int offset, int length)
Read a and array of CORBA longs.
long
read_longlong()
Read a CORBA long long that is mapped into java long.
void
read_longlong_array(long[] value, int offset, int length)
Read an array of CORBA long long
byte
read_octet()
Read a CORBA octed that is mapped into java byte.
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.
short
read_short()
Read a CORBA short.
void
read_short_array(short[] value, int offset, int length)
String
read_string()
Read a CORBA string that is mapped into java String.
int
read_ulong()
Read a CORBA unsigned long that is mapped into java int.
void
read_ulong_array(int[] value, int offset, int length)
Read an array of CORBA unsigned long.
long
read_ulonglong()
Read a and array of CORBA unsigned longs.
void
read_ulonglong_array(long[] value, int offset, int length)
Read a and array of CORBA unsigned longs.
short
read_ushort()
Read a CORBA unsigned short that is mapped into java short.
void
read_ushort_array(short[] value, int offset, int length)
Read a and array of CORBA unsigned shorts.
char
read_wchar()
Read a CORBA wchar that is mapped into java char.
void
read_wchar_array(char[] value, int offset, int length)
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, finalize, getClass, 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 Object read_Object()
Read a CORBA (not java) object

Returns:
an object.


read_Object

public Object read_Object(Class 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 TypeCode read_TypeCode()
Read a TypeCode.

Returns:
a TypeCode.


read_any

public Any read_any()
Read a CORBA Any.

Returns:
an Any.


read_boolean

public boolean read_boolean()
Read a CORBA boolean.

Returns:
a value, corresponding the value of the CORBA boolean.


read_boolean_array

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


read_char

public char read_char()
Read a CORBA char.

Returns:
a value, corresponding the value of the CORBA char.


read_char_array

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


read_double

public double read_double()
Read a CORBA double.

Returns:
a value, corresponding the value of the CORBA double.


read_double_array

public 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 float read_float()
Read a CORBA float.

Returns:
a value, corresponding the value of the CORBA float.


read_float_array

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


read_long

public int read_long()
Read a CORBA long that is mapped into java int.

Returns:
an integer, corresponding the CORBA long.


read_long_array

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


read_longlong

public 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 void read_longlong_array(long[] value,
                                int offset,
                                int length)
Read an array of CORBA long long


read_octet

public byte read_octet()
Read a CORBA octed that is mapped into java byte.

Returns:
a byte, corresponding the CORBA octet.


read_octet_array

public 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 short read_short()
Read a CORBA short.

Returns:
a value, corresponding the value of the CORBA short.


read_short_array

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


read_string

public 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 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 void read_ulong_array(int[] value,
                             int offset,
                             int length)
Read an array of CORBA unsigned long.


read_ulonglong

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


read_ulonglong_array

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


read_ushort

public 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 void read_ushort_array(short[] value,
                              int offset,
                              int length)
Read a and array of CORBA unsigned shorts.


read_wchar

public 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 void read_wchar_array(char[] value,
                             int offset,
                             int length)


read_wstring

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