Package com.sun.corba.se.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.se.impl.encoding.CDROutputStream
com.sun.corba.se.impl.encoding.EncapsOutputStream
- All Implemented Interfaces:
MarshalOutputStream,Closeable,Flushable,Serializable,AutoCloseable,DataOutputStream,IDLEntity,ValueBase,ValueOutputStream
- Direct Known Subclasses:
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:
-
Field Summary
Fields inherited from class com.sun.corba.se.impl.encoding.CDROutputStream
corbaMessageMediator, orb, wrapper -
Constructor Summary
ConstructorsConstructorDescriptionEncapsOutputStream(ORB orb) EncapsOutputStream(ORB orb, boolean isLittleEndian) EncapsOutputStream(ORB orb, GIOPVersion version) EncapsOutputStream(ORB orb, GIOPVersion version, boolean isLittleEndian) -
Method Summary
Modifier and TypeMethodDescriptionReturns an input stream with the same buffer.protected CodeSetConversion.CTBConverterprotected CodeSetConversion.CTBConverterMethods inherited from class com.sun.corba.se.impl.encoding.CDROutputStream
_truncatable_ids, alignOnBoundary, close, end_block, end_value, flush, freeInternalCaches, getBufferManager, getByteBuffer, getByteBufferWithInfo, getGIOPVersion, getIndex, getMessageMediator, getRealIndex, getSize, isLittleEndian, isSharing, orb, putEndian, setByteBuffer, setByteBufferWithInfo, 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
nullOutputStream
-
Constructor Details
-
EncapsOutputStream
-
EncapsOutputStream
-
EncapsOutputStream
-
EncapsOutputStream
-
-
Method Details
-
create_input_stream
Description copied from class:OutputStreamReturns an input stream with the same buffer.- Specified by:
create_input_streamin interfaceMarshalOutputStream- Specified by:
create_input_streamin classCDROutputStream- Returns:
- an input stream with the same buffer.
-
createCharCTBConverter
- Overrides:
createCharCTBConverterin classCDROutputStream
-
createWCharCTBConverter
- Specified by:
createWCharCTBConverterin classCDROutputStream
-