org.openorb.orb.io
Class LocalInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.omg.CORBA.portable.InputStream
          extended byorg.omg.CORBA_2_3.portable.InputStream
              extended byorg.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.

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.


read_Object

public org.omg.CORBA.Object read_Object(java.lang.Class clz)
Read an Object.

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.

Returns:
The object read from the stream.

read_TypeCode

public org.omg.CORBA.TypeCode read_TypeCode()
Reads a typecode.

Returns:
The type code read from the stream.

read_any

public org.omg.CORBA.Any read_any()
Read an any value.

Returns:
The any read from the stream.

read_boolean

public boolean read_boolean()
Read a boolean.

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.

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.

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.

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()

read_double_array

public void read_double_array(double[] value,
                              int offset,
                              int length)

read_float

public float read_float()

read_float_array

public void read_float_array(float[] value,
                             int offset,
                             int length)

read_long

public int read_long()

read_long_array

public void read_long_array(int[] value,
                            int offset,
                            int length)

read_longlong

public long read_longlong()

read_longlong_array

public void read_longlong_array(long[] value,
                                int offset,
                                int length)

read_octet

public byte read_octet()

read_octet_array

public void read_octet_array(byte[] value,
                             int offset,
                             int length)

read_short

public short read_short()

read_short_array

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

read_string

public java.lang.String read_string()

read_ulong

public int read_ulong()

read_ulong_array

public void read_ulong_array(int[] value,
                             int offset,
                             int length)

read_ulonglong

public long read_ulonglong()

read_ulonglong_array

public void read_ulonglong_array(long[] value,
                                 int offset,
                                 int length)

read_ushort

public short read_ushort()

read_ushort_array

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

read_wchar

public char read_wchar()

read_wchar_array

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

read_wstring

public java.lang.String read_wstring()

read_value

public java.io.Serializable read_value()

read_value

public java.io.Serializable read_value(java.lang.String rep_id)

read_value

public java.io.Serializable read_value(java.lang.Class clz)

read_value

public java.io.Serializable read_value(org.omg.CORBA.portable.BoxedValueHelper factory)

read_value

public java.io.Serializable read_value(java.io.Serializable value)

read_abstract_interface

public java.lang.Object read_abstract_interface()

read_abstract_interface

public java.lang.Object read_abstract_interface(java.lang.Class clz)