Package com.sun.corba.se.impl.encoding
Class CDROutputObject
java.lang.Object
java.io.OutputStream
org.omg.CORBA.portable.OutputStream
org.omg.CORBA_2_3.portable.OutputStream
com.sun.corba.se.impl.encoding.CDROutputStream
com.sun.corba.se.spi.encoding.CorbaOutputObject
com.sun.corba.se.impl.encoding.CDROutputObject
- All Implemented Interfaces:
MarshalOutputStream,OutputObject,Closeable,Flushable,Serializable,AutoCloseable,DataOutputStream,IDLEntity,ValueBase,ValueOutputStream
- Author:
- Harold Carr
- See Also:
-
Field Summary
Fields inherited from class com.sun.corba.se.impl.encoding.CDROutputStream
corbaMessageMediator -
Constructor Summary
ConstructorsConstructorDescriptionCDROutputObject(ORB orb, MessageMediator messageMediator, Message header, byte streamFormatVersion) CDROutputObject(ORB orb, MessageMediator messageMediator, Message header, byte streamFormatVersion, int strategy) CDROutputObject(ORB orb, CorbaMessageMediator mediator, GIOPVersion giopVersion, CorbaConnection connection, Message header, byte streamFormatVersion) -
Method Summary
Modifier and TypeMethodDescriptionoverrides create_input_stream from CDROutputStreamprotected CodeSetConversion.CTBConverterOverride the default CDR factory behavior to get the negotiated code sets from the connection.protected CodeSetConversion.CTBConverterprotected voidfinal voidfinal ByteBufferWithInfofinal voidvoidwriteTo(CorbaConnection connection) Write the contents of the CDROutputStream to the specified output stream.Methods inherited from class com.sun.corba.se.impl.encoding.CDROutputStream
_truncatable_ids, alignOnBoundary, close, end_block, end_value, flush, freeInternalCaches, getBufferManager, getByteBuffer, getGIOPVersion, getIndex, getMessageMediator, getRealIndex, getSize, isLittleEndian, isSharing, orb, putEndian, setByteBuffer, setHeaderPadding, setIndex, setMessageMediator, start_block, start_value, toByteArray, write, write, write, write_Abstract, write_abstract_interface, write_any, write_any_array, write_boolean, write_boolean_array, write_char, write_char_array, write_Context, write_double, write_double_array, write_fixed, write_fixed, write_float, write_float_array, write_long, write_long_array, write_longlong, write_longlong_array, write_Object, write_octet, write_octet_array, write_Principal, write_short, write_short_array, write_string, write_TypeCode, write_ulong, write_ulong_array, write_ulonglong, write_ulonglong_array, write_ushort, write_ushort_array, write_value, write_value, write_value, write_value, write_Value, write_wchar, write_wchar_array, write_wstring, writeIndirection, writeOctetSequenceTo, writeToMethods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.corba.se.pept.encoding.OutputObject
close, getMessageMediator, setMessageMediator
-
Constructor Details
-
CDROutputObject
public CDROutputObject(ORB orb, MessageMediator messageMediator, Message header, byte streamFormatVersion) -
CDROutputObject
public CDROutputObject(ORB orb, MessageMediator messageMediator, Message header, byte streamFormatVersion, int strategy) -
CDROutputObject
public CDROutputObject(ORB orb, CorbaMessageMediator mediator, GIOPVersion giopVersion, CorbaConnection connection, Message header, byte streamFormatVersion)
-
-
Method Details
-
getMessageHeader
-
finishSendingMessage
public final void finishSendingMessage() -
writeTo
Write the contents of the CDROutputStream to the specified output stream. Has the side-effect of pushing any current Message onto the Message list.- Specified by:
writeToin classCorbaOutputObject- Parameters:
s- The output stream to write to.- Throws:
IOException
-
create_input_stream
overrides create_input_stream from CDROutputStream- Specified by:
create_input_streamin interfaceMarshalOutputStream- Specified by:
create_input_streamin classCDROutputStream- Returns:
- an input stream with the same buffer.
-
getConnection
-
getByteBufferWithInfo
- Overrides:
getByteBufferWithInfoin classCDROutputStream
-
setByteBufferWithInfo
- Overrides:
setByteBufferWithInfoin classCDROutputStream
-
createCharCTBConverter
Override the default CDR factory behavior to get the negotiated code sets from the connection. These are only called once per message, the first time needed. In the local case, there is no Connection, so use the local code sets.- Overrides:
createCharCTBConverterin classCDROutputStream
-
createWCharCTBConverter
- Specified by:
createWCharCTBConverterin classCDROutputStream
-
dprint
-