org.omg.CORBA.portable
Class InputStream

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

public abstract class InputStream
extends InputStream

This class is used to read CORBA IDL data types.


Constructor Summary
InputStream()
           
 
Method Summary
 ORB orb()
          Return the Object Request Broker that has created this stream.
abstract  Any read_any()
          Read a CORBA Any.
abstract  void read_boolean_array(boolean[] value, int offset, int length)
          Read a and array of CORBA boolean values.
abstract  boolean read_boolean()
          Read a CORBA boolean.
abstract  void read_char_array(char[] value, int offset, int length)
          Read a and array of CORBA characters.
abstract  char read_char()
          Read a CORBA char.
 Context read_Context()
          This should read the CORBA context, but following the 1.4 API specification, it must not be implemented.
abstract  void read_double_array(double[] value, int offset, int length)
          Read a and array of CORBA doubles.
abstract  double read_double()
          Read a CORBA double.
 BigDecimal read_fixed()
          Read a CORBA fixed.
abstract  void read_float_array(float[] value, int offset, int length)
          Read a and array of CORBA float.
abstract  float read_float()
          Read a CORBA float.
abstract  void read_long_array(int[] value, int offset, int length)
          Read a and array of CORBA longs.
abstract  int read_long()
          Read a CORBA long that is mapped into java int.
abstract  void read_longlong_array(long[] value, int offset, int length)
          Read an array of CORBA long long
abstract  long read_longlong()
          Read a CORBA long long that is mapped into java long.
abstract  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.
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  byte read_octet()
          Read a CORBA octed that is mapped into java byte.
 Principal read_Principal()
          Deprecated. by CORBA 2.2
abstract  void read_short_array(short[] value, int offset, int length)
           
abstract  short read_short()
          Read a CORBA short.
abstract  String read_string()
          Read a CORBA string that is mapped into java String.
abstract  TypeCode read_TypeCode()
          Read a TypeCode.
abstract  void read_ulong_array(int[] value, int offset, int length)
          Read an array of CORBA unsigned long.
abstract  int read_ulong()
          Read a CORBA unsigned long that is mapped into java int.
abstract  void read_ulonglong_array(long[] value, int offset, int length)
          Read a and array of CORBA unsigned longs.
abstract  long read_ulonglong()
          Read a and array of CORBA unsigned longs.
abstract  void read_ushort_array(short[] value, int offset, int length)
          Read a and array of CORBA unsigned shorts.
abstract  short read_ushort()
          Read a CORBA unsigned short that is mapped into java short.
abstract  void read_wchar_array(char[] value, int offset, int length)
           
abstract  char read_wchar()
          Read a CORBA wchar that is mapped into java char.
abstract  String read_wstring()
          Read a CORBA wstring that is mapped into java String.
 int read()
          Should read from the stream, but following specification it does not.
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStream

public InputStream()
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_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_Object

public abstract Object read_Object()
Read a CORBA (not java) object

Returns:
an object.

read_char

public abstract char read_char()
Read a CORBA char.

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

read_double

public abstract double read_double()
Read a CORBA double.

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

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

public int read()
         throws IOException
Should read from the stream, but following specification it does not.

Specified by:
read in class InputStream
Returns:
The byte read or -1 if end of stream
Throws:
IOException
NO_IMPLEMENT, - always.

read_TypeCode

public abstract TypeCode read_TypeCode()
Read a TypeCode.

Returns:
a TypeCode.

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_array

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


read_double_array

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


read_long_array

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


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

public abstract Any read_any()
Read a CORBA Any.

Returns:
an Any.

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

read_Principal

public Principal read_Principal()
Deprecated. by CORBA 2.2

Read a CORBA Principal.

Returns:
a Principal.