|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--org.omg.CORBA.portable.OutputStream | +--org.omg.CORBA_2_3.portable.OutputStream | +--org.openorb.io.ListOutputStream
This implementation of org.omg.CORBA_2_3.portable.InputStream uses a list as it's backing store. All non primitive types are stored by reference.
The format of the stored types is a TCKind giving the type of the stored value, followed by the stored value itself within an Object wrapper.
Arrays of primitive types are stored as a TCKind.tk_array, followed by an ArrayBlock object containing the stored data. The array data is stored by reference.
The format of all other types is noted.
Constructor Summary | |
ListOutputStream(ORB orb)
Create new output stream. |
|
ListOutputStream(ORB orb,
java.util.List contents)
Create new output stream with destination list. |
Method Summary | |
InputStream |
create_input_stream()
Create a new input stream from the data inserted into this stream. |
boolean |
equals(java.lang.Object obj)
Comparisons to ListInputStreams and ListOutputStreams are possible. |
ORB |
orb()
Get the orb associated with the stream. |
void |
write_abstract_interface(java.lang.Object object)
Abstract interfaces are written as a TCKind.tk_abstract_interface kind, followed by a TCKind.tk_objref and the reference for objects or a TCKind.tk_value and the value for valuetypes. |
void |
write_any(Any value)
To copy the any's contents to the stream write it's typecode followed with a call to any.write_value. |
void |
write_boolean_array(boolean[] val,
int off,
int len)
|
void |
write_boolean(boolean i)
|
void |
write_char_array(char[] val,
int off,
int len)
|
void |
write_char(char i)
|
void |
write_Context(Context ctx,
ContextList contexts)
Contexts are written like an array of strings, with name and value pairs for each context. |
void |
write_double_array(double[] val,
int off,
int len)
|
void |
write_double(double i)
|
void |
write_fixed(java.math.BigDecimal value)
|
void |
write_fixed(java.math.BigDecimal val,
short digits,
short scale)
Fixes problems in old write_fixed. |
void |
write_fixed(java.math.BigDecimal val,
TypeCode tc)
Fixes problems in old write_fixed. |
void |
write_float_array(float[] val,
int off,
int len)
|
void |
write_float(float i)
|
void |
write_long_array(int[] val,
int off,
int len)
|
void |
write_long(int i)
|
void |
write_longlong_array(long[] val,
int off,
int len)
|
void |
write_longlong(long i)
|
void |
write_Object(Object value)
|
void |
write_octet_array(byte[] val,
int off,
int len)
|
void |
write_octet(byte i)
|
void |
write_Principal(Principal value)
Deprecated. Deprecated by CORBA 2.2 |
void |
write_short_array(short[] val,
int off,
int len)
|
void |
write_short(short i)
|
void |
write_string(java.lang.String i)
|
void |
write_TypeCode(TypeCode value)
|
void |
write_ulong_array(int[] val,
int off,
int len)
|
void |
write_ulong(int i)
|
void |
write_ulonglong_array(long[] val,
int off,
int len)
|
void |
write_ulonglong(long i)
|
void |
write_ushort_array(short[] val,
int off,
int len)
|
void |
write_ushort(short i)
|
void |
write_value(java.io.Serializable value)
Valuetypes are stored as a TCKind.tk_value kind followed by a reference to the value. |
void |
write_value(java.io.Serializable value,
BoxedValueHelper boxhelp)
Boxed valuetypes are stored as a TCKind.tk_value_box, followed by the box helper, followed by the contents of the valuebox as written by the helper. |
void |
write_value(java.io.Serializable value,
java.lang.Class clz)
|
void |
write_value(java.io.Serializable value,
java.lang.String repositoryId)
Valuetypes are stored as a TCKind.tk_value kind followed by a reference to the value. |
void |
write_wchar_array(char[] val,
int off,
int len)
|
void |
write_wchar(char i)
|
void |
write_wstring(java.lang.String i)
|
Methods inherited from class org.omg.CORBA.portable.OutputStream |
write |
Methods inherited from class java.io.OutputStream |
close, flush, write, write |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ListOutputStream(ORB orb)
public ListOutputStream(ORB orb, java.util.List contents)
Method Detail |
public ORB orb()
orb
in interface ExtendedOutputStream
orb
in class OutputStream
public InputStream create_input_stream()
create_input_stream
in class OutputStream
public void write_boolean(boolean i)
write_boolean
in class OutputStream
public void write_boolean_array(boolean[] val, int off, int len)
write_boolean_array
in class OutputStream
public void write_octet(byte i)
write_octet
in class OutputStream
public void write_octet_array(byte[] val, int off, int len)
write_octet_array
in class OutputStream
public void write_short(short i)
write_short
in class OutputStream
public void write_short_array(short[] val, int off, int len)
write_short_array
in class OutputStream
public void write_ushort(short i)
write_ushort
in class OutputStream
public void write_ushort_array(short[] val, int off, int len)
write_ushort_array
in class OutputStream
public void write_long(int i)
write_long
in class OutputStream
public void write_long_array(int[] val, int off, int len)
write_long_array
in class OutputStream
public void write_ulong(int i)
write_ulong
in class OutputStream
public void write_ulong_array(int[] val, int off, int len)
write_ulong_array
in class OutputStream
public void write_longlong(long i)
write_longlong
in class OutputStream
public void write_longlong_array(long[] val, int off, int len)
write_longlong_array
in class OutputStream
public void write_ulonglong(long i)
write_ulonglong
in class OutputStream
public void write_ulonglong_array(long[] val, int off, int len)
write_ulonglong_array
in class OutputStream
public void write_float(float i)
write_float
in class OutputStream
public void write_float_array(float[] val, int off, int len)
write_float_array
in class OutputStream
public void write_double(double i)
write_double
in class OutputStream
public void write_double_array(double[] val, int off, int len)
write_double_array
in class OutputStream
public void write_char(char i)
write_char
in class OutputStream
public void write_char_array(char[] val, int off, int len)
write_char_array
in class OutputStream
public void write_wchar(char i)
write_wchar
in class OutputStream
public void write_wchar_array(char[] val, int off, int len)
write_wchar_array
in class OutputStream
public void write_string(java.lang.String i)
write_string
in class OutputStream
public void write_wstring(java.lang.String i)
write_wstring
in class OutputStream
public void write_Object(Object value)
write_Object
in class OutputStream
public void write_TypeCode(TypeCode value)
write_TypeCode
in class OutputStream
public void write_any(Any value)
write_any
in class OutputStream
public void write_Context(Context ctx, ContextList contexts)
write_Context
in class OutputStream
public void write_Principal(Principal value)
write_Principal
in class OutputStream
public void write_fixed(java.math.BigDecimal value)
write_fixed
in class OutputStream
public void write_fixed(java.math.BigDecimal val, TypeCode tc)
ExtendedOutputStream
write_fixed
in interface ExtendedOutputStream
BAD_PARAM
- Typecode is not fixed type or value out of range of type.public void write_fixed(java.math.BigDecimal val, short digits, short scale)
ExtendedOutputStream
write_fixed
in interface ExtendedOutputStream
write_fixed
in class OutputStream
BAD_PARAM
- Value out of range of type.public void write_value(java.io.Serializable value)
This function will find the valuebox helper if the valuetype is a valuebox type.
write_value
in class OutputStream
public void write_value(java.io.Serializable value, java.lang.String repositoryId)
This function will find the valuebox helper if the valuetype is a valuebox type.
write_value
in class OutputStream
public void write_value(java.io.Serializable value, java.lang.Class clz)
write_value
in class OutputStream
public void write_value(java.io.Serializable value, BoxedValueHelper boxhelp)
This function will find the valuebox helper if the valuetype is a valuebox type.
write_value
in class OutputStream
public void write_abstract_interface(java.lang.Object object)
write_abstract_interface
in class OutputStream
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |