|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.omg.CORBA.portable.OutputStream
org.omg.CORBA_2_3.portable.OutputStream
org.jacorb.orb.CDROutputStream
public class CDROutputStream
Field Summary | |
---|---|
protected byte[] |
buffer
|
protected int |
giop_minor
|
Constructor Summary | |
---|---|
CDROutputStream()
OutputStreams created using the empty constructor are used for in memory marshaling, but do not use the ORB's output buffer manager. |
|
CDROutputStream(byte[] buf)
Class constructor setting the buffer size for the message and the character encoding sets. |
|
CDROutputStream(org.omg.CORBA.ORB orb)
OutputStreams created using this constructor are used also for in memory marshaling, but do use the ORB's output buffer manager |
Method Summary | |
---|---|
void |
beginEncapsulatedArray()
Can be used locally for data type conversions without preceeding call to beginEncapsulation, i.e. |
void |
beginEncapsulation()
Start a CDR encapsulation. |
void |
close()
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
This stream is self-configuring, i.e. |
org.omg.CORBA.portable.InputStream |
create_input_stream()
The following operations are from OutputStream * |
void |
endEncapsulation()
Terminate the encapsulation by writing its length to its beginning. |
protected void |
finalize()
|
byte[] |
getBufferCopy()
|
int |
getGIOPMinor()
|
void |
increaseSize(int amount)
Add amount empty space |
org.omg.CORBA.ORB |
orb()
|
void |
reduceSize(int amount)
|
void |
reset()
|
void |
setBuffer(byte[] b)
|
void |
setBufferWithoutReset(byte[] b,
int size)
|
void |
setCodeSet(int codeSet,
int codeSetWide)
|
void |
setGIOPMinor(int giop_minor)
|
int |
size()
|
void |
skip(int step)
|
void |
updateMutatorConnection(GIOPConnection connection)
updateMutatorConnection is an accessor that updates the
ior mutator. |
void |
write_abstract_interface(java.lang.Object object)
Writes an abstract interface to this stream. |
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 c)
write_char writes a character to the output stream. |
void |
write_double_array(double[] value,
int offset,
int length)
|
void |
write_double(double value)
|
void |
write_fixed(java.math.BigDecimal value)
|
void |
write_fixed(java.math.BigDecimal value,
short digits,
short scale)
|
void |
write_float_array(float[] value,
int offset,
int length)
|
void |
write_float(float value)
|
void |
write_IOR(org.omg.IOP.IOR ior)
|
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_Principal(org.omg.CORBA.Principal value)
|
void |
write_short_array(short[] value,
int offset,
int length)
|
void |
write_short(short value)
|
void |
write_string(java.lang.String s)
write_string writes a string to the output stream. |
void |
write_TypeCode(org.omg.CORBA.TypeCode typeCode)
|
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)
Writes the serialized state of `value' to this stream. |
void |
write_value(java.io.Serializable value,
org.omg.CORBA.portable.BoxedValueHelper factory)
|
void |
write_value(java.io.Serializable value,
java.lang.Class clazz)
|
void |
write_value(java.io.Serializable value,
java.lang.String repository_id)
|
void |
write_value(org.omg.CORBA.TypeCode typeCode,
org.omg.CORBA.portable.InputStream input)
Reads a value of the type indicated by tc from the
InputStream in and remarshals it to this CDROutputStream. |
void |
write_wchar_array(char[] value,
int offset,
int length)
|
void |
write_wchar(char c)
|
void |
write_wstring(java.lang.String s)
|
void |
write(java.io.OutputStream out,
int start,
int length)
write the contents of this CDR stream to the output stream, includes all deferred writes (e.g., for byte arrays)... |
Methods inherited from class org.omg.CORBA.portable.OutputStream |
---|
write_Context, write |
Methods inherited from class java.io.OutputStream |
---|
flush, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte[] buffer
protected int giop_minor
Constructor Detail |
---|
public CDROutputStream()
public CDROutputStream(org.omg.CORBA.ORB orb)
public CDROutputStream(byte[] buf)
Method Detail |
---|
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
public org.omg.CORBA.ORB orb()
orb
in class org.omg.CORBA.portable.OutputStream
public void write(java.io.OutputStream out, int start, int length) throws java.io.IOException
java.io.IOException
public void setCodeSet(int codeSet, int codeSetWide)
public void setGIOPMinor(int giop_minor)
public int getGIOPMinor()
public void close()
close
in interface java.io.Closeable
close
in class java.io.OutputStream
public final void beginEncapsulation()
public final void beginEncapsulatedArray()
public final void endEncapsulation()
public byte[] getBufferCopy()
public int size()
public void reset()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public final void skip(int step)
public final void reduceSize(int amount)
public final void increaseSize(int amount)
public void setBuffer(byte[] b)
public void setBufferWithoutReset(byte[] b, int size)
public org.omg.CORBA.portable.InputStream create_input_stream()
create_input_stream
in class org.omg.CORBA.portable.OutputStream
public final void write_any(org.omg.CORBA.Any value)
write_any
in class org.omg.CORBA.portable.OutputStream
public final void write_boolean(boolean value)
write_boolean
in class org.omg.CORBA.portable.OutputStream
public final void write_boolean_array(boolean[] value, int offset, int length)
write_boolean_array
in class org.omg.CORBA.portable.OutputStream
public final void write_char(char c)
write_char
writes a character to the output stream. If
codeset translation is active then it will use String and an encoding to
get the bytes. It can then do a test for whether to throw DATA_CONVERSION.
write_char
in class org.omg.CORBA.portable.OutputStream
c
- a char
valuepublic final void write_char_array(char[] value, int offset, int length)
write_char_array
in class org.omg.CORBA.portable.OutputStream
public final void write_string(java.lang.String s)
write_string
writes a string to the output stream. It is
optimised for whether it is writing a blank string or for whether codeset
translation is active.
write_string
in class org.omg.CORBA.portable.OutputStream
s
- a String
valuepublic final void write_wchar(char c)
write_wchar
in class org.omg.CORBA.portable.OutputStream
public final void write_wchar_array(char[] value, int offset, int length)
write_wchar_array
in class org.omg.CORBA.portable.OutputStream
public final void write_wstring(java.lang.String s)
write_wstring
in class org.omg.CORBA.portable.OutputStream
public final void write_double(double value)
write_double
in class org.omg.CORBA.portable.OutputStream
public final void write_double_array(double[] value, int offset, int length)
write_double_array
in class org.omg.CORBA.portable.OutputStream
public final void write_fixed(java.math.BigDecimal value, short digits, short scale)
public final void write_fixed(java.math.BigDecimal value)
write_fixed
in class org.omg.CORBA.portable.OutputStream
public final void write_float(float value)
write_float
in class org.omg.CORBA.portable.OutputStream
public final void write_float_array(float[] value, int offset, int length)
write_float_array
in class org.omg.CORBA.portable.OutputStream
public final void write_long(int value)
write_long
in class org.omg.CORBA.portable.OutputStream
public final void write_long_array(int[] value, int offset, int length)
write_long_array
in class org.omg.CORBA.portable.OutputStream
public final void write_longlong(long value)
write_longlong
in class org.omg.CORBA.portable.OutputStream
public final void write_longlong_array(long[] value, int offset, int length)
write_longlong_array
in class org.omg.CORBA.portable.OutputStream
public void write_Object(org.omg.CORBA.Object value)
write_Object
in class org.omg.CORBA.portable.OutputStream
public void write_IOR(org.omg.IOP.IOR ior)
public final void write_octet(byte value)
write_octet
in class org.omg.CORBA.portable.OutputStream
public final void write_octet_array(byte[] value, int offset, int length)
write_octet_array
in class org.omg.CORBA.portable.OutputStream
public final void write_Principal(org.omg.CORBA.Principal value)
write_Principal
in class org.omg.CORBA.portable.OutputStream
public final void write_short(short value)
write_short
in class org.omg.CORBA.portable.OutputStream
public final void write_short_array(short[] value, int offset, int length)
write_short_array
in class org.omg.CORBA.portable.OutputStream
public final void write_TypeCode(org.omg.CORBA.TypeCode typeCode)
write_TypeCode
in class org.omg.CORBA.portable.OutputStream
public final void write_ulong(int value)
write_ulong
in class org.omg.CORBA.portable.OutputStream
public final void write_ulong_array(int[] value, int offset, int length)
write_ulong_array
in class org.omg.CORBA.portable.OutputStream
public final void write_ulonglong(long value)
write_ulonglong
in class org.omg.CORBA.portable.OutputStream
public final void write_ulonglong_array(long[] value, int offset, int length)
write_ulonglong_array
in class org.omg.CORBA.portable.OutputStream
public final void write_ushort(short value)
write_ushort
in class org.omg.CORBA.portable.OutputStream
public final void write_ushort_array(short[] value, int offset, int length)
write_ushort_array
in class org.omg.CORBA.portable.OutputStream
public final void write_value(org.omg.CORBA.TypeCode typeCode, org.omg.CORBA.portable.InputStream input)
tc
from the
InputStream in
and remarshals it to this CDROutputStream.
Called from Any.
public void write_value(java.io.Serializable value)
write_value
in class org.omg.CORBA_2_3.portable.OutputStream
public void write_value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper factory)
write_value
in class org.omg.CORBA_2_3.portable.OutputStream
public void write_value(java.io.Serializable value, java.lang.Class clazz)
write_value
in class org.omg.CORBA_2_3.portable.OutputStream
public void write_value(java.io.Serializable value, java.lang.String repository_id)
write_value
in class org.omg.CORBA_2_3.portable.OutputStream
public void write_abstract_interface(java.lang.Object object)
write_abstract_interface
in class org.omg.CORBA_2_3.portable.OutputStream
public void updateMutatorConnection(GIOPConnection connection)
updateMutatorConnection
is an accessor that updates the
ior mutator.
By making callers pass in a GIOPConnection not a transport this allows
callers to not have to call getTransport which would require a synchronized
lock. Therefore if the mutator has not been enabled this is effectively a
NOP.
connection
- an org.omg.ETF.Connection
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |