org.openorb.orb.io
Class LocalOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.omg.CORBA.portable.OutputStream
          extended by org.omg.CORBA_2_3.portable.OutputStream
              extended by org.openorb.orb.io.LocalOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

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()
Specified by:
create_input_stream in class org.omg.CORBA.portable.OutputStream

write_Object

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

write_TypeCode

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

write_any

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

write_boolean

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

write_boolean_array

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

write_char

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

write_char_array

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

write_double

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

write_double_array

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

write_float

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

write_float_array

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

write_long

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

write_long_array

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

write_longlong

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

write_longlong_array

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

write_octet

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

write_octet_array

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

write_short

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

write_short_array

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

write_string

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

write_ulong

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

write_ulong_array

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

write_ulonglong

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

write_ulonglong_array

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

write_ushort

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

write_ushort_array

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

write_wchar

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

write_wchar_array

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

write_wstring

public void write_wstring(java.lang.String value)
Specified by:
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