org.omg.CORBA.portable

Class InputStream

public abstract class InputStream extends InputStream

This class is used to read CORBA IDL data types.
Method Summary
ORBorb()
Return the Object Request Broker that has created this stream.
intread()
Should read from the stream, but following specification it does not.
abstract Anyread_any()
Read a CORBA Any.
abstract booleanread_boolean()
Read a CORBA boolean.
abstract voidread_boolean_array(boolean[] value, int offset, int length)
Read a and array of CORBA boolean values.
abstract charread_char()
Read a CORBA char.
abstract voidread_char_array(char[] value, int offset, int length)
Read a and array of CORBA characters.
Contextread_Context()
This should read the CORBA context, but following the 1.4 API specification, it must not be implemented.
abstract doubleread_double()
Read a CORBA double.
abstract voidread_double_array(double[] value, int offset, int length)
Read a and array of CORBA doubles.
BigDecimalread_fixed()
Read a CORBA fixed.
abstract floatread_float()
Read a CORBA float.
abstract voidread_float_array(float[] value, int offset, int length)
Read a and array of CORBA float.
abstract intread_long()
Read a CORBA long that is mapped into java int.
abstract longread_longlong()
Read a CORBA long long that is mapped into java long.
abstract voidread_longlong_array(long[] value, int offset, int length)
Read an array of CORBA long long
abstract voidread_long_array(int[] value, int offset, int length)
Read a and array of CORBA longs.
abstract byteread_octet()
Read a CORBA octed that is mapped into java byte.
abstract voidread_octet_array(byte[] value, int offset, int length)
Read a and array of CORBA octets that are mapped into java array of bytes.
abstract Objectread_Object()
Read a CORBA (not java) object
Objectread_Object(Class klass)
Read a CORBA object that is an instance of the class, passed as an argument.
Principalread_Principal()
Read a CORBA Principal.
abstract shortread_short()
Read a CORBA short.
abstract voidread_short_array(short[] value, int offset, int length)
abstract Stringread_string()
Read a CORBA string that is mapped into java String.
abstract TypeCoderead_TypeCode()
Read a TypeCode.
abstract intread_ulong()
Read a CORBA unsigned long that is mapped into java int.
abstract longread_ulonglong()
Read a and array of CORBA unsigned longs.
abstract voidread_ulonglong_array(long[] value, int offset, int length)
Read a and array of CORBA unsigned longs.
abstract voidread_ulong_array(int[] value, int offset, int length)
Read an array of CORBA unsigned long.
abstract shortread_ushort()
Read a CORBA unsigned short that is mapped into java short.
abstract voidread_ushort_array(short[] value, int offset, int length)
Read a and array of CORBA unsigned shorts.
abstract charread_wchar()
Read a CORBA wchar that is mapped into java char.
abstract voidread_wchar_array(char[] value, int offset, int length)
abstract Stringread_wstring()
Read a CORBA wstring that is mapped into java String.

Method Detail

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()
Should read from the stream, but following specification it does not.

Throws: java.io.IOException NO_IMPLEMENT, always.

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_Context

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

Throws: NO_IMPLEMENT, always.

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.

Throws: NO_IMPLEMENT, always.

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

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

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_Object

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

Throws: NO_IMPLEMENT, always.

read_Principal

public Principal read_Principal()

Deprecated: by CORBA 2.2

Read a CORBA Principal.

Returns: a Principal.

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_TypeCode

public abstract TypeCode read_TypeCode()
Read a TypeCode.

Returns: a TypeCode.

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

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

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.