| java.lang.Object java.io.OutputStream org.omg.CORBA.portable.OutputStream org.omg.CORBA_2_3.portable.OutputStream org.jacorb.orb.CDROutputStream
All known Subclasses: org.jacorb.orb.giop.MessageOutputStream,
CDROutputStream | public class CDROutputStream extends org.omg.CORBA_2_3.portable.OutputStream (Code) | | author: Gerald Brose, 1999 version: $Id: CDROutputStream.java,v 1.122 2006/11/30 13:11:07 alphonse.bendt Exp $ version: A stream for CDR marshalling. |
Constructor Summary | |
public | CDROutputStream() OutputStreams created using the empty constructor are used for
in memory marshaling, but do not use the ORB's output buffer
manager. | public | CDROutputStream(org.omg.CORBA.ORB orb) | public | CDROutputStream(byte[] buf) Class constructor setting the buffer size for the message and
the character encoding sets. |
Method Summary | |
final public void | beginEncapsulatedArray() Can be used locally for data type conversions
without preceeding call to beginEncapsulation, i.e. | final public void | beginEncapsulation() Start a CDR encapsulation. | public void | close() | public void | configure(Configuration configuration) This stream is self-configuring, i.e. | public org.omg.CORBA.portable.InputStream | create_input_stream() | final public void | endEncapsulation() Terminate the encapsulation by writing its length
to its beginning. | protected void | finalize() | public byte[] | getBufferCopy() | public int | getGIOPMinor() | final public void | increaseSize(int amount) | public org.omg.CORBA.ORB | orb() | final public void | reduceSize(int amount) | public void | reset() | public void | setBuffer(byte[] b) | public void | setBufferWithoutReset(byte[] b, int size) | public void | setCodeSet(int codeSet, int codeSetWide) | public void | setGIOPMinor(int giop_minor) | public int | size() | final public void | skip(int step) | 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. | public void | write(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)...
called by, e.g. | public void | write_IOR(IOR ior) | public void | write_Object(org.omg.CORBA.Object value) | final public void | write_Principal(org.omg.CORBA.Principal value) | final public void | write_TypeCode(org.omg.CORBA.TypeCode typeCode) | public void | write_abstract_interface(java.lang.Object object) Writes an abstract interface to this stream. | final public void | write_any(org.omg.CORBA.Any value) | final public void | write_boolean(boolean value) | final public void | write_boolean_array(boolean[] value, int offset, int length) | final public void | write_char(char c) write_char writes a character to the output stream. | final public void | write_char_array(char[] value, int offset, int length) | final public void | write_double(double value) | final public void | write_double_array(double[] value, int offset, int length) | final public void | write_fixed(BigDecimal value, short digits, short scale) | final public void | write_fixed(java.math.BigDecimal value) | final public void | write_float(float value) | final public void | write_float_array(float[] value, int offset, int length) | final public void | write_long(int value) | final public void | write_long_array(int[] value, int offset, int length) | final public void | write_longlong(long value) | final public void | write_longlong_array(long[] value, int offset, int length) | final public void | write_octet(byte value) | final public void | write_octet_array(byte[] value, int offset, int length) | final public void | write_short(short value) | final public void | write_short_array(short[] value, int offset, int length) | final public void | write_string(String s) write_string writes a string to the output stream. | final public void | write_ulong(int value) | final public void | write_ulong_array(int[] value, int offset, int length) | final public void | write_ulonglong(long value) | final public void | write_ulonglong_array(long[] value, int offset, int length) | final public void | write_ushort(short value) | final public void | write_ushort_array(short[] value, int offset, int length) | final public 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. | public void | write_value(java.io.Serializable value) Writes the serialized state of `value' to this stream. | public void | write_value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper factory) | public void | write_value(java.io.Serializable value, java.lang.Class clazz) | public void | write_value(java.io.Serializable value, String repository_id) | final public void | write_wchar(char c) | final public void | write_wchar_array(char[] value, int offset, int length) | final public void | write_wstring(String s) |
buffer | protected byte[] buffer(Code) | | |
giop_minor | protected int giop_minor(Code) | | |
CDROutputStream | public CDROutputStream()(Code) | | OutputStreams created using the empty constructor are used for
in memory marshaling, but do not use the ORB's output buffer
manager. A stream created with this c'tor is not explicitly
configured, i.e. it will use default configuration only
|
CDROutputStream | public CDROutputStream(org.omg.CORBA.ORB orb)(Code) | | OutputStreams created using this constructor
are used also for in memory marshaling, but do use the
ORB's output buffer manager
|
CDROutputStream | public CDROutputStream(byte[] buf)(Code) | | Class constructor setting the buffer size for the message and
the character encoding sets. A stream created with this c'tor
is not explicitly configured, i.e. it will use default
configuration only!
|
beginEncapsulatedArray | final public void beginEncapsulatedArray()(Code) | | Can be used locally for data type conversions
without preceeding call to beginEncapsulation, i.e.
without a leading long that indicates the size.
|
beginEncapsulation | final public void beginEncapsulation()(Code) | | Start a CDR encapsulation. All subsequent writes
will place data in the encapsulation until
endEncapsulation is called. This will write
the size of the encapsulation.
|
close | public void close()(Code) | | |
configure | public void configure(Configuration configuration)(Code) | | This stream is self-configuring, i.e. configure() is private
and only called from the constructor
TODO this led to situations were streams weren't configured properly
(see callers of configure) so i changed the method to be public.
should be fixed. alphonse 11.05.2006
|
endEncapsulation | final public void endEncapsulation()(Code) | | Terminate the encapsulation by writing its length
to its beginning.
|
getBufferCopy | public byte[] getBufferCopy()(Code) | | |
getGIOPMinor | public int getGIOPMinor()(Code) | | |
increaseSize | final public void increaseSize(int amount)(Code) | | Add amount empty space
|
reduceSize | final public void reduceSize(int amount)(Code) | | |
reset | public void reset()(Code) | | |
setBuffer | public void setBuffer(byte[] b)(Code) | | |
setBufferWithoutReset | public void setBufferWithoutReset(byte[] b, int size)(Code) | | |
setCodeSet | public void setCodeSet(int codeSet, int codeSetWide)(Code) | | |
setGIOPMinor | public void setGIOPMinor(int giop_minor)(Code) | | |
skip | final public void skip(int step)(Code) | | |
updateMutatorConnection | public void updateMutatorConnection(GIOPConnection connection)(Code) | | 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.
Parameters: connection - an org.omg.ETF.Connection value |
write | public void write(OutputStream out, int start, int length) throws IOException(Code) | | write the contents of this CDR stream to the output stream,
includes all deferred writes (e.g., for byte arrays)...
called by, e.g. GIOPConnection to write directly to the
wire.
|
write_IOR | public void write_IOR(IOR ior)(Code) | | |
write_abstract_interface | public void write_abstract_interface(java.lang.Object object)(Code) | | Writes an abstract interface to this stream. The abstract interface is
written as a union with a boolean discriminator, which is true if the
union contains a CORBA object reference, or false if the union contains
a value.
|
write_boolean | final public void write_boolean(boolean value)(Code) | | |
write_boolean_array | final public void write_boolean_array(boolean[] value, int offset, int length)(Code) | | |
write_char | final public void write_char(char c)(Code) | | 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.
Parameters: c - a char value |
write_char_array | final public void write_char_array(char[] value, int offset, int length)(Code) | | |
write_double | final public void write_double(double value)(Code) | | |
write_double_array | final public void write_double_array(double[] value, int offset, int length)(Code) | | |
write_fixed | final public void write_fixed(BigDecimal value, short digits, short scale)(Code) | | |
write_float | final public void write_float(float value)(Code) | | |
write_float_array | final public void write_float_array(float[] value, int offset, int length)(Code) | | |
write_long | final public void write_long(int value)(Code) | | |
write_long_array | final public void write_long_array(int[] value, int offset, int length)(Code) | | |
write_longlong | final public void write_longlong(long value)(Code) | | |
write_longlong_array | final public void write_longlong_array(long[] value, int offset, int length)(Code) | | |
write_octet | final public void write_octet(byte value)(Code) | | |
write_octet_array | final public void write_octet_array(byte[] value, int offset, int length)(Code) | | |
write_short | final public void write_short(short value)(Code) | | |
write_short_array | final public void write_short_array(short[] value, int offset, int length)(Code) | | |
write_string | final public void write_string(String s)(Code) | | 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.
Parameters: s - a String value |
write_ulong | final public void write_ulong(int value)(Code) | | |
write_ulong_array | final public void write_ulong_array(int[] value, int offset, int length)(Code) | | |
write_ulonglong | final public void write_ulonglong(long value)(Code) | | |
write_ulonglong_array | final public void write_ulonglong_array(long[] value, int offset, int length)(Code) | | |
write_ushort | final public void write_ushort(short value)(Code) | | |
write_ushort_array | final public void write_ushort_array(short[] value, int offset, int length)(Code) | | |
write_wchar | final public void write_wchar(char c)(Code) | | |
write_wchar_array | final public void write_wchar_array(char[] value, int offset, int length)(Code) | | |
write_wstring | final public void write_wstring(String s)(Code) | | |
Methods inherited from org.omg.CORBA.portable.OutputStream | abstract public InputStream create_input_stream()(Code)(Java Doc) public org.omg.CORBA.ORB orb()(Code)(Java Doc) public void write(int b) throws java.io.IOException(Code)(Java Doc) public void write_Context(org.omg.CORBA.Context ctx, org.omg.CORBA.ContextList contexts)(Code)(Java Doc) abstract public void write_Object(org.omg.CORBA.Object value)(Code)(Java Doc) public void write_Principal(org.omg.CORBA.Principal value)(Code)(Java Doc) abstract public void write_TypeCode(org.omg.CORBA.TypeCode value)(Code)(Java Doc) abstract public void write_any(org.omg.CORBA.Any value)(Code)(Java Doc) abstract public void write_boolean(boolean value)(Code)(Java Doc) abstract public void write_boolean_array(boolean[] value, int offset, int length)(Code)(Java Doc) abstract public void write_char(char value)(Code)(Java Doc) abstract public void write_char_array(char[] value, int offset, int length)(Code)(Java Doc) abstract public void write_double(double value)(Code)(Java Doc) abstract public void write_double_array(double[] value, int offset, int length)(Code)(Java Doc) public void write_fixed(java.math.BigDecimal value)(Code)(Java Doc) public void write_fixed(java.math.BigDecimal value, short digits, short scale)(Code)(Java Doc) abstract public void write_float(float value)(Code)(Java Doc) abstract public void write_float_array(float[] value, int offset, int length)(Code)(Java Doc) abstract public void write_long(int value)(Code)(Java Doc) abstract public void write_long_array(int[] value, int offset, int length)(Code)(Java Doc) abstract public void write_longlong(long value)(Code)(Java Doc) abstract public void write_longlong_array(long[] value, int offset, int length)(Code)(Java Doc) abstract public void write_octet(byte value)(Code)(Java Doc) abstract public void write_octet_array(byte[] value, int offset, int length)(Code)(Java Doc) abstract public void write_short(short value)(Code)(Java Doc) abstract public void write_short_array(short[] value, int offset, int length)(Code)(Java Doc) abstract public void write_string(String value)(Code)(Java Doc) abstract public void write_ulong(int value)(Code)(Java Doc) abstract public void write_ulong_array(int[] value, int offset, int length)(Code)(Java Doc) abstract public void write_ulonglong(long value)(Code)(Java Doc) abstract public void write_ulonglong_array(long[] value, int offset, int length)(Code)(Java Doc) abstract public void write_ushort(short value)(Code)(Java Doc) abstract public void write_ushort_array(short[] value, int offset, int length)(Code)(Java Doc) abstract public void write_wchar(char value)(Code)(Java Doc) abstract public void write_wchar_array(char[] value, int offset, int length)(Code)(Java Doc) abstract public void write_wstring(String value)(Code)(Java Doc)
|
|
|