org.openorb.orb.io
Class LocalOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--org.omg.CORBA.portable.OutputStream
              |
              +--org.omg.CORBA_2_3.portable.OutputStream
                    |
                    +--org.openorb.orb.io.LocalOutputStream

public class LocalOutputStream
extends org.omg.CORBA_2_3.portable.OutputStream

This class is a very simple OutputStream that implements the basic functionalities for transfering arguments between a server and a client in the same JVM. It is useful for stubs that do not handle local calls, like those generated by the JDK 1.4 idlj. This class uses a List for storing the arguments.

Author:
Erik Putrycz

Constructor Summary
LocalOutputStream()
          Creates a new instance of LocalOutputStream.
 
Method Summary
 org.omg.CORBA.portable.InputStream create_input_stream()
           
 void write_abstract_interface(java.lang.Object object)
           
 void write_any(org.omg.CORBA.Any value)
           
 void write_boolean_array(boolean[] value, int offset, int length)
           
 void write_boolean(boolean value)
           
 void write_char_array(char[] value, int offset, int length)
           
 void write_char(char value)
           
 void write_double_array(double[] value, int offset, int length)
           
 void write_double(double value)
           
 void write_float_array(float[] value, int offset, int length)
           
 void write_float(float value)
           
 void write_long_array(int[] value, int offset, int length)
           
 void write_long(int value)
           
 void write_longlong_array(long[] value, int offset, int length)
           
 void write_longlong(long value)
           
 void write_Object(org.omg.CORBA.Object value)
           
 void write_octet_array(byte[] value, int offset, int length)
           
 void write_octet(byte value)
           
 void write_short_array(short[] value, int offset, int length)
           
 void write_short(short value)
           
 void write_string(java.lang.String value)
           
 void write_TypeCode(org.omg.CORBA.TypeCode value)
           
 void write_ulong_array(int[] value, int offset, int length)
           
 void write_ulong(int value)
           
 void write_ulonglong_array(long[] value, int offset, int length)
           
 void write_ulonglong(long value)
           
 void write_ushort_array(short[] value, int offset, int length)
           
 void write_ushort(short value)
           
 void write_value(java.io.Serializable value)
           
 void write_value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper factory)
           
 void write_value(java.io.Serializable value, java.lang.Class clz)
           
 void write_value(java.io.Serializable value, java.lang.String rep_id)
           
 void write_wchar_array(char[] value, int offset, int length)
           
 void write_wchar(char value)
           
 void write_wstring(java.lang.String value)
           
 
Methods inherited from class org.omg.CORBA.portable.OutputStream
orb, write_Context, write_fixed, write_fixed, write_Principal, write
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalOutputStream

public LocalOutputStream()
Creates a new instance of LocalOutputStream.
Method Detail

create_input_stream

public org.omg.CORBA.portable.InputStream create_input_stream()
Overrides:
create_input_stream in class org.omg.CORBA.portable.OutputStream

write_Object

public void write_Object(org.omg.CORBA.Object value)
Overrides:
write_Object in class org.omg.CORBA.portable.OutputStream

write_TypeCode

public void write_TypeCode(org.omg.CORBA.TypeCode value)
Overrides:
write_TypeCode in class org.omg.CORBA.portable.OutputStream

write_any

public void write_any(org.omg.CORBA.Any value)
Overrides:
write_any in class org.omg.CORBA.portable.OutputStream

write_boolean

public void write_boolean(boolean value)
Overrides:
write_boolean in class org.omg.CORBA.portable.OutputStream

write_boolean_array

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

write_char

public void write_char(char value)
Overrides:
write_char in class org.omg.CORBA.portable.OutputStream

write_char_array

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

write_double

public void write_double(double value)
Overrides:
write_double in class org.omg.CORBA.portable.OutputStream

write_double_array

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

write_float

public void write_float(float value)
Overrides:
write_float in class org.omg.CORBA.portable.OutputStream

write_float_array

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

write_long

public void write_long(int value)
Overrides:
write_long in class org.omg.CORBA.portable.OutputStream

write_long_array

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

write_longlong

public void write_longlong(long value)
Overrides:
write_longlong in class org.omg.CORBA.portable.OutputStream

write_longlong_array

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

write_octet

public void write_octet(byte value)
Overrides:
write_octet in class org.omg.CORBA.portable.OutputStream

write_octet_array

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

write_short

public void write_short(short value)
Overrides:
write_short in class org.omg.CORBA.portable.OutputStream

write_short_array

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

write_string

public void write_string(java.lang.String value)
Overrides:
write_string in class org.omg.CORBA.portable.OutputStream

write_ulong

public void write_ulong(int value)
Overrides:
write_ulong in class org.omg.CORBA.portable.OutputStream

write_ulong_array

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

write_ulonglong

public void write_ulonglong(long value)
Overrides:
write_ulonglong in class org.omg.CORBA.portable.OutputStream

write_ulonglong_array

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

write_ushort

public void write_ushort(short value)
Overrides:
write_ushort in class org.omg.CORBA.portable.OutputStream

write_ushort_array

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

write_wchar

public void write_wchar(char value)
Overrides:
write_wchar in class org.omg.CORBA.portable.OutputStream

write_wchar_array

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

write_wstring

public void write_wstring(java.lang.String value)
Overrides:
write_wstring in class org.omg.CORBA.portable.OutputStream

write_value

public void write_value(java.io.Serializable value)
Overrides:
write_value in class org.omg.CORBA_2_3.portable.OutputStream

write_value

public void write_value(java.io.Serializable value,
                        java.lang.String rep_id)
Overrides:
write_value in class org.omg.CORBA_2_3.portable.OutputStream

write_value

public void write_value(java.io.Serializable value,
                        java.lang.Class clz)
Overrides:
write_value in class org.omg.CORBA_2_3.portable.OutputStream

write_value

public void write_value(java.io.Serializable value,
                        org.omg.CORBA.portable.BoxedValueHelper factory)
Overrides:
write_value in class org.omg.CORBA_2_3.portable.OutputStream

write_abstract_interface

public void write_abstract_interface(java.lang.Object object)
Overrides:
write_abstract_interface in class org.omg.CORBA_2_3.portable.OutputStream