Package com.sun.corba.ee.impl.encoding
Class EncapsOutputStream
java.lang.Object
java.io.OutputStream
org.omg.CORBA.portable.OutputStream
org.omg.CORBA_2_3.portable.OutputStream
com.sun.corba.ee.impl.encoding.CDROutputObject
com.sun.corba.ee.impl.encoding.EncapsOutputStream
- All Implemented Interfaces:
MarshalOutputStream
,Closeable
,Flushable
,Serializable
,AutoCloseable
,DataOutputStream
,IDLEntity
,ValueBase
,ValueOutputStream
- Direct Known Subclasses:
AnyImpl.AnyOutputStream
,TypeCodeOutputStream
Encapsulations are supposed to explicitly define their
code sets and GIOP version. The original resolution to issue 2784
said that the defaults were UTF-8 and UTF-16, but that was not
agreed upon.
These streams currently use CDR 1.2 with ISO8859-1 for char/string and
UTF16 for wchar/wstring. If no byte order marker is available,
the endianness of the encapsulation is used.
When more encapsulations arise that have their own special code
sets defined, we can make all constructors take such parameters.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Nested classes/interfaces inherited from class com.sun.corba.ee.impl.encoding.CDROutputObject
CDROutputObject.InputObjectFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final CDROutputObject.InputObjectFactory
(package private) static final boolean
Fields inherited from class com.sun.corba.ee.impl.encoding.CDROutputObject
wrapper
-
Constructor Summary
ConstructorsConstructorDescriptionEncapsOutputStream
(ORB orb) EncapsOutputStream
(ORB orb, GIOPVersion version) -
Method Summary
Modifier and TypeMethodDescriptionoverrides create_input_stream from CDROutputStreamprotected CodeSetConversion.CTBConverter
protected CodeSetConversion.CTBConverter
Methods inherited from class com.sun.corba.ee.impl.encoding.CDROutputObject
_truncatable_ids, close, createInputObject, createInputObject, dprint, end_block, end_value, finishSendingMessage, flush, freeInternalCaches, getBufferManager, getBufferPosition, getConnection, getGIOPVersion, getIndex, getMessageHeader, getMessageMediator, getRealIndex, getSize, orb, putEndian, sendFirstFragment, setHeaderPadding, setIndex, setMessageMediator, setPrivateFieldValue, start_block, start_value, toByteArray, 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, writeTo, writeTo
-
Field Details
-
usePooledByteBuffers
static final boolean usePooledByteBuffers- See Also:
-
INPUT_STREAM_FACTORY
-
-
Constructor Details
-
EncapsOutputStream
-
EncapsOutputStream
-
-
Method Details
-
create_input_stream
Description copied from class:CDROutputObject
overrides create_input_stream from CDROutputStream- Specified by:
create_input_stream
in interfaceMarshalOutputStream
- Overrides:
create_input_stream
in classCDROutputObject
- Returns:
- an input stream with the same buffer.
-
createCharCTBConverter
- Overrides:
createCharCTBConverter
in classCDROutputObject
-
createWCharCTBConverter
- Overrides:
createWCharCTBConverter
in classCDROutputObject
-