org.openorb.orb.io
Class LocalInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--org.omg.CORBA.portable.InputStream
              |
              +--org.omg.CORBA_2_3.portable.InputStream
                    |
                    +--org.openorb.orb.io.LocalInputStream

public class LocalInputStream
extends org.omg.CORBA_2_3.portable.InputStream

implementation of InputStream for streaming local calls (that are not handled by stubs as JDK1.4 idl compiler)

Author:
Erik Putrycz

Constructor Summary
LocalInputStream(java.util.List arglist)
          Creates a new instance of LocalInputStream.
 
Method Summary
 java.lang.Object read_abstract_interface()
           
 java.lang.Object read_abstract_interface(java.lang.Class clz)
           
 org.omg.CORBA.Any read_any()
          Read an any value.
 void read_boolean_array(boolean[] value, int offset, int length)
          Read a boolean array.
 boolean read_boolean()
          Read a boolean.
 void read_char_array(char[] value, int offset, int length)
          Read a char array.
 char read_char()
          Read a char.
 void read_double_array(double[] value, int offset, int length)
           
 double read_double()
           
 void read_float_array(float[] value, int offset, int length)
           
 float read_float()
           
 void read_long_array(int[] value, int offset, int length)
           
 int read_long()
           
 void read_longlong_array(long[] value, int offset, int length)
           
 long read_longlong()
           
 org.omg.CORBA.Object read_Object()
          Read an Object.
 org.omg.CORBA.Object read_Object(java.lang.Class clz)
          Read an Object.
 void read_octet_array(byte[] value, int offset, int length)
           
 byte read_octet()
           
 void read_short_array(short[] value, int offset, int length)
           
 short read_short()
           
 java.lang.String read_string()
           
 org.omg.CORBA.TypeCode read_TypeCode()
          Reads a typecode.
 void read_ulong_array(int[] value, int offset, int length)
           
 int read_ulong()
           
 void read_ulonglong_array(long[] value, int offset, int length)
           
 long read_ulonglong()
           
 void read_ushort_array(short[] value, int offset, int length)
           
 short read_ushort()
           
 java.io.Serializable read_value()
           
 java.io.Serializable read_value(org.omg.CORBA.portable.BoxedValueHelper factory)
           
 java.io.Serializable read_value(java.lang.Class clz)
           
 java.io.Serializable read_value(java.io.Serializable value)
           
 java.io.Serializable read_value(java.lang.String rep_id)
           
 void read_wchar_array(char[] value, int offset, int length)
           
 char read_wchar()
           
 java.lang.String read_wstring()
           
 void reset()
          Set the pointer of the list to its beginning.
 java.lang.String toString()
          Creates a stringified representation of the stream contents.
 
Methods inherited from class org.omg.CORBA.portable.InputStream
orb, read_Context, read_fixed, read_fixed, read_Principal, read
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalInputStream

public LocalInputStream(java.util.List arglist)
Creates a new instance of LocalInputStream.
Parameters:
arglist - The List used for reading elements.
Method Detail

toString

public java.lang.String toString()
Creates a stringified representation of the stream contents.
Overrides:
toString in class java.lang.Object
Returns:
The result of the toString() method for each element of the stream.

reset

public void reset()
Set the pointer of the list to its beginning.
Overrides:
reset in class java.io.InputStream

read_Object

public org.omg.CORBA.Object read_Object(java.lang.Class clz)
Read an Object.
Overrides:
read_Object in class org.omg.CORBA.portable.InputStream
Parameters:
clz - Class for result type.
Returns:
The object read from the stream.

read_Object

public org.omg.CORBA.Object read_Object()
Read an Object.
Overrides:
read_Object in class org.omg.CORBA.portable.InputStream
Returns:
The object read from the stream.

read_TypeCode

public org.omg.CORBA.TypeCode read_TypeCode()
Reads a typecode.
Overrides:
read_TypeCode in class org.omg.CORBA.portable.InputStream
Returns:
The type code read from the stream.

read_any

public org.omg.CORBA.Any read_any()
Read an any value.
Overrides:
read_any in class org.omg.CORBA.portable.InputStream
Returns:
The any read from the stream.

read_boolean

public boolean read_boolean()
Read a boolean.
Overrides:
read_boolean in class org.omg.CORBA.portable.InputStream
Returns:
The boolean read from the stream.

read_boolean_array

public void read_boolean_array(boolean[] value,
                               int offset,
                               int length)
Read a boolean array.
Overrides:
read_boolean_array in class org.omg.CORBA.portable.InputStream
Parameters:
value - The array to put the values in.
offset - The offset from which to start reading.
length - The number of boolean to read.

read_char

public char read_char()
Read a char.
Overrides:
read_char in class org.omg.CORBA.portable.InputStream
Returns:
The char read from the stream.

read_char_array

public void read_char_array(char[] value,
                            int offset,
                            int length)
Read a char array.
Overrides:
read_char_array in class org.omg.CORBA.portable.InputStream
Parameters:
value - The array to put the values into.
offset - The offset from which to start reading.
length - The number of chars to read.

read_double

public double read_double()
Overrides:
read_double in class org.omg.CORBA.portable.InputStream

read_double_array

public void read_double_array(double[] value,
                              int offset,
                              int length)
Overrides:
read_double_array in class org.omg.CORBA.portable.InputStream

read_float

public float read_float()
Overrides:
read_float in class org.omg.CORBA.portable.InputStream

read_float_array

public void read_float_array(float[] value,
                             int offset,
                             int length)
Overrides:
read_float_array in class org.omg.CORBA.portable.InputStream

read_long

public int read_long()
Overrides:
read_long in class org.omg.CORBA.portable.InputStream

read_long_array

public void read_long_array(int[] value,
                            int offset,
                            int length)
Overrides:
read_long_array in class org.omg.CORBA.portable.InputStream

read_longlong

public long read_longlong()
Overrides:
read_longlong in class org.omg.CORBA.portable.InputStream

read_longlong_array

public void read_longlong_array(long[] value,
                                int offset,
                                int length)
Overrides:
read_longlong_array in class org.omg.CORBA.portable.InputStream

read_octet

public byte read_octet()
Overrides:
read_octet in class org.omg.CORBA.portable.InputStream

read_octet_array

public void read_octet_array(byte[] value,
                             int offset,
                             int length)
Overrides:
read_octet_array in class org.omg.CORBA.portable.InputStream

read_short

public short read_short()
Overrides:
read_short in class org.omg.CORBA.portable.InputStream

read_short_array

public void read_short_array(short[] value,
                             int offset,
                             int length)
Overrides:
read_short_array in class org.omg.CORBA.portable.InputStream

read_string

public java.lang.String read_string()
Overrides:
read_string in class org.omg.CORBA.portable.InputStream

read_ulong

public int read_ulong()
Overrides:
read_ulong in class org.omg.CORBA.portable.InputStream

read_ulong_array

public void read_ulong_array(int[] value,
                             int offset,
                             int length)
Overrides:
read_ulong_array in class org.omg.CORBA.portable.InputStream

read_ulonglong

public long read_ulonglong()
Overrides:
read_ulonglong in class org.omg.CORBA.portable.InputStream

read_ulonglong_array

public void read_ulonglong_array(long[] value,
                                 int offset,
                                 int length)
Overrides:
read_ulonglong_array in class org.omg.CORBA.portable.InputStream

read_ushort

public short read_ushort()
Overrides:
read_ushort in class org.omg.CORBA.portable.InputStream

read_ushort_array

public void read_ushort_array(short[] value,
                              int offset,
                              int length)
Overrides:
read_ushort_array in class org.omg.CORBA.portable.InputStream

read_wchar

public char read_wchar()
Overrides:
read_wchar in class org.omg.CORBA.portable.InputStream

read_wchar_array

public void read_wchar_array(char[] value,
                             int offset,
                             int length)
Overrides:
read_wchar_array in class org.omg.CORBA.portable.InputStream

read_wstring

public java.lang.String read_wstring()
Overrides:
read_wstring in class org.omg.CORBA.portable.InputStream

read_value

public java.io.Serializable read_value()
Overrides:
read_value in class org.omg.CORBA_2_3.portable.InputStream

read_value

public java.io.Serializable read_value(java.lang.String rep_id)
Overrides:
read_value in class org.omg.CORBA_2_3.portable.InputStream

read_value

public java.io.Serializable read_value(java.lang.Class clz)
Overrides:
read_value in class org.omg.CORBA_2_3.portable.InputStream

read_value

public java.io.Serializable read_value(org.omg.CORBA.portable.BoxedValueHelper factory)
Overrides:
read_value in class org.omg.CORBA_2_3.portable.InputStream

read_value

public java.io.Serializable read_value(java.io.Serializable value)
Overrides:
read_value in class org.omg.CORBA_2_3.portable.InputStream

read_abstract_interface

public java.lang.Object read_abstract_interface()
Overrides:
read_abstract_interface in class org.omg.CORBA_2_3.portable.InputStream

read_abstract_interface

public java.lang.Object read_abstract_interface(java.lang.Class clz)
Overrides:
read_abstract_interface in class org.omg.CORBA_2_3.portable.InputStream