Package com.sun.corba.se.impl.encoding
Class EncapsInputStream
java.lang.Object
java.io.InputStream
org.omg.CORBA.portable.InputStream
org.omg.CORBA_2_3.portable.InputStream
com.sun.corba.se.impl.encoding.CDRInputStream
com.sun.corba.se.impl.encoding.EncapsInputStream
- All Implemented Interfaces:
MarshalInputStream,Closeable,Serializable,AutoCloseable,DataInputStream,IDLEntity,ValueBase,ValueInputStream
- Direct Known Subclasses:
TypeCodeInputStream
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.CDRInputStream
messageMediator -
Constructor Summary
ConstructorsConstructorDescriptionEncapsInputStream(ORB orb, byte[] data, int size) EncapsInputStream(ORB orb, byte[] buf, int size, boolean littleEndian, GIOPVersion version) EncapsInputStream(ORB orb, byte[] data, int size, GIOPVersion version) EncapsInputStream(ORB orb, byte[] data, int size, GIOPVersion version, CodeBase codeBase) Full constructor with a CodeBase parameter useful for unmarshaling RMI-IIOP valuetypes (technically against the intention of an encapsulation, but necessary due to OMG issue 4795.EncapsInputStream(ORB orb, ByteBuffer byteBuffer, int size, boolean littleEndian, GIOPVersion version) -
Method Summary
Modifier and TypeMethodDescriptionprotected CodeSetConversion.BTCConverterprotected CodeSetConversion.BTCConverterdup()Methods inherited from class com.sun.corba.se.impl.encoding.CDRInputStream
_truncatable_ids, alignOnBoundary, available, close, consumeEndian, end_value, getBufferLength, getBufferManager, getByteBuffer, getGIOPVersion, getIndex, getMessageMediator, getPosition, isLittleEndian, isSharing, mark, markSupported, orb, orb, performORBVersionSpecificInit, read, read, read, read_Abstract, read_abstract_interface, read_abstract_interface, read_any, read_any_array, read_boolean, read_boolean_array, read_boolean_array, read_char, read_char_array, read_char_array, read_Context, read_double, read_double_array, read_double_array, read_fixed, read_fixed, read_float, read_float_array, read_float_array, read_long, read_long_array, read_long_array, read_longlong, read_longlong_array, read_longlong_array, read_Object, read_Object, read_octet, read_octet_array, read_octet_array, read_Principal, read_short, read_short_array, read_short_array, read_string, read_TypeCode, read_ulong, read_ulong_array, read_ulong_array, read_ulonglong, read_ulonglong_array, read_ulonglong_array, read_ushort, read_ushort_array, read_ushort_array, read_value, read_value, read_value, read_value, read_value, read_Value, read_wchar, read_wchar_array, read_wchar_array, read_wstring, reset, resetCodeSetConverters, setBufferLength, setByteBuffer, setByteBufferWithInfo, setHeaderPadding, setIndex, setMessageMediator, skip, start_valueMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
EncapsInputStream
-
EncapsInputStream
public EncapsInputStream(ORB orb, ByteBuffer byteBuffer, int size, boolean littleEndian, GIOPVersion version) -
EncapsInputStream
-
EncapsInputStream
-
EncapsInputStream
-
EncapsInputStream
Full constructor with a CodeBase parameter useful for unmarshaling RMI-IIOP valuetypes (technically against the intention of an encapsulation, but necessary due to OMG issue 4795. Used by ServiceContexts.
-
-
Method Details
-
dup
- Specified by:
dupin classCDRInputStream
-
createCharBTCConverter
- Overrides:
createCharBTCConverterin classCDRInputStream
-
createWCharBTCConverter
- Specified by:
createWCharBTCConverterin classCDRInputStream
-
getCodeBase
- Overrides:
getCodeBasein classCDRInputStream
-