Package com.sun.corba.se.impl.encoding
Class CDRInputStream
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
- All Implemented Interfaces:
MarshalInputStream,Closeable,Serializable,AutoCloseable,DataInputStream,IDLEntity,ValueBase,ValueInputStream
- Direct Known Subclasses:
CDRInputObject,CorbaInputObject,EncapsInputStream
public abstract class CDRInputStream
extends InputStream
implements MarshalInputStream, DataInputStream, ValueInputStream
This is delegates to the real implementation.
NOTE:
Before using the stream for valuetype unmarshaling, one must call
performORBVersionSpecificInit().
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCDRInputStream(ORB orb, ByteBuffer byteBuffer, int size, boolean littleEndian, GIOPVersion version, byte encodingVersion, BufferManagerRead bufMgr) -
Method Summary
Modifier and TypeMethodDescriptionfinal String[]Provides truncatable repository ids.voidalignOnBoundary(int octetBoundary) Aligns the current position on the given octet boundary if there are enough bytes available to do so.final intfinal voidclose()final voidprotected CodeSetConversion.BTCConverterprotected abstract CodeSetConversion.BTCConverterabstract CDRInputStreamdup()voidThe end_value method reads the end tag for the nested custom valuetype (after skipping any data that precedes the end tag) and decrements the valuetype nesting depth.final intfinal BufferManagerReadprotected final ByteBufferfinal GIOPVersionprotected final intgetIndex()final intfinal booleanprotected final booleanisSharing(ByteBuffer bb) return true if our ByteBuffer is sharing/equal to bbfinal voidmark(int readlimit) final booleanfinal ORBorb()Returns the ORB that created this InputStream.final voidvoidThis must be called after determining the proper ORB version, and setting it on the stream's ORB instance.final intread()final intread(byte[] b) final intread(byte[] b, int off, int len) final ObjectReads an IDL Abstract interface from the input stream.final ObjectUnmarshal the value object or a suitable stub object.final ObjectUnmarshal the class object or the stub class corresponding to the passed type.final Anyread_any()Reads an Any from this input stream.final voidread_any_array(AnySeqHolder seq, int offset, int length) Reads array of IDL Anys from offset for length elements from the input stream.final booleanReads a boolean value from this input stream.final voidread_boolean_array(boolean[] value, int offset, int length) Reads an array of booleans from this input stream.final voidread_boolean_array(BooleanSeqHolder seq, int offset, int length) Reads array of IDL booleans from offset for length elements from the input stream.final charReads a char value from this input stream.final voidread_char_array(char[] value, int offset, int length) Reads an array of chars from this input stream.final voidread_char_array(CharSeqHolder seq, int offset, int length) Reads array of IDL characters from offset for length elements from the input stream.final ContextReads a CORBA context from the stream.final doubleReads a double value from this input stream.final voidread_double_array(double[] value, int offset, int length) Reads an array of doubles from this input stream.final voidread_double_array(DoubleSeqHolder seq, int offset, int length) Reads array of IDL doubles from offset for length elements from the input stream.final BigDecimalReads a BigDecimal number.final BigDecimalread_fixed(short digits, short scale) final floatReads a float value from this input stream.final voidread_float_array(float[] value, int offset, int length) Reads an array of floats from this input stream.final voidread_float_array(FloatSeqHolder seq, int offset, int length) Reads array of IDL floats from offset for length elements from the input stream.final intReads a CORBA long (that is, Java int) value from this input stream.final voidread_long_array(int[] value, int offset, int length) Reads an array of CORBA longs (that is, Java ints) from this input stream.final voidread_long_array(LongSeqHolder seq, int offset, int length) Reads array of IDL longs from offset for length elements from the input stream.final longReads a CORBA longlong (that is, Java long) value from this input stream.final voidread_longlong_array(long[] value, int offset, int length) Reads an array of CORBA longlongs (that is, Java longs) from this input stream.final voidread_longlong_array(LongLongSeqHolder seq, int offset, int length) Reads array of IDL long longs from offset for length elements from the input stream.final ObjectReads a CORBA object from this input stream.final Objectread_Object(Class clz) Unmarshals an object and returns a CORBA Object, which is an instance of the class passed as its argument.final byteReads an octet (that is, a byte) value from this input stream.final voidread_octet_array(byte[] value, int offset, int length) Reads an array of octets (that is, bytes) from this input stream.final voidread_octet_array(OctetSeqHolder seq, int offset, int length) Reads array of IDL octets from offset for length elements from the input stream.final PrincipalReturns principal for invocation.final shortReads a short value from this input stream.final voidread_short_array(short[] value, int offset, int length) Reads an array of shorts from this input stream.final voidread_short_array(ShortSeqHolder seq, int offset, int length) Reads array of IDL shorts from offset for length elements from the input stream.final StringReads a string value from this input stream.final TypeCodeReads aTypeCodefrom this input stream.final intReads an unsigned CORBA long (that is, Java int) value from this input stream.final voidread_ulong_array(int[] value, int offset, int length) Reads an array of unsigned CORBA longs (that is, Java ints) from this input stream.final voidread_ulong_array(ULongSeqHolder seq, int offset, int length) Reads array of IDL unsigned longs from offset for length elements from the input stream.final longReads a CORBA unsigned longlong (that is, Java long) value from this input stream.final voidread_ulonglong_array(long[] value, int offset, int length) Reads an array of unsigned CORBA longlongs (that is, Java longs) from this input stream.final voidread_ulonglong_array(ULongLongSeqHolder seq, int offset, int length) Reads array of IDL unsigned long longs from offset for length elements from the input stream.final shortReads a unsigned short value from this input stream.final voidread_ushort_array(short[] value, int offset, int length) Reads an array of unsigned shorts from this input stream.final voidread_ushort_array(UShortSeqHolder seq, int offset, int length) Reads array of IDL unsigned shorts from offset for length elements from the input stream.final SerializableUnmarshalls a value type from the input stream.final Serializableread_value(Serializable value) Unmarshalls a value type from the input stream.final Serializableread_value(Class clz) Unmarshalls a value type from the input stream.final Serializableread_value(String rep_id) Unmarshalls a value type from the input stream.final Serializableread_value(BoxedValueHelper factory) Unmarshalls a value type from the input stream.final SerializableReads an IDL value type from the input stream.final charReads a wide char value from this input stream.final voidread_wchar_array(char[] value, int offset, int length) Reads an array of wide chars from this input stream.final voidread_wchar_array(WCharSeqHolder seq, int offset, int length) Reads array of IDL wide characters from offset for length elements from the input stream.final StringReads a wide string value from this input stream.final voidreset()voidResets any internal references to code set converters.protected final voidsetBufferLength(int value) protected final voidsetByteBuffer(ByteBuffer byteBuffer) protected final voidvoidsetHeaderPadding(boolean headerPadding) protected final voidsetIndex(int value) voidsetMessageMediator(MessageMediator messageMediator) final longskip(long n) voidThe start_value method reads a valuetype header for a nested custom valuetype and increments the valuetype nesting depth.Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
messageMediator
-
-
Constructor Details
-
CDRInputStream
public CDRInputStream() -
CDRInputStream
-
CDRInputStream
public CDRInputStream(ORB orb, ByteBuffer byteBuffer, int size, boolean littleEndian, GIOPVersion version, byte encodingVersion, BufferManagerRead bufMgr)
-
-
Method Details
-
read_boolean
public final boolean read_boolean()Description copied from class:InputStreamReads a boolean value from this input stream.- Specified by:
read_booleanin interfaceDataInputStream- Specified by:
read_booleanin interfaceMarshalInputStream- Specified by:
read_booleanin classInputStream- Returns:
- the
booleanvalue read from this input stream
-
read_char
public final char read_char()Description copied from class:InputStreamReads a char value from this input stream.- Specified by:
read_charin interfaceDataInputStream- Specified by:
read_charin interfaceMarshalInputStream- Specified by:
read_charin classInputStream- Returns:
- the
charvalue read from this input stream
-
read_wchar
public final char read_wchar()Description copied from class:InputStreamReads a wide char value from this input stream.- Specified by:
read_wcharin interfaceDataInputStream- Specified by:
read_wcharin interfaceMarshalInputStream- Specified by:
read_wcharin classInputStream- Returns:
- the
charvalue read from this input stream
-
read_octet
public final byte read_octet()Description copied from class:InputStreamReads an octet (that is, a byte) value from this input stream.- Specified by:
read_octetin interfaceDataInputStream- Specified by:
read_octetin interfaceMarshalInputStream- Specified by:
read_octetin classInputStream- Returns:
- the
bytevalue read from this input stream
-
read_short
public final short read_short()Description copied from class:InputStreamReads a short value from this input stream.- Specified by:
read_shortin interfaceDataInputStream- Specified by:
read_shortin interfaceMarshalInputStream- Specified by:
read_shortin classInputStream- Returns:
- the
shortvalue read from this input stream
-
read_ushort
public final short read_ushort()Description copied from class:InputStreamReads a unsigned short value from this input stream.- Specified by:
read_ushortin interfaceDataInputStream- Specified by:
read_ushortin interfaceMarshalInputStream- Specified by:
read_ushortin classInputStream- Returns:
- the
shortvalue read from this input stream
-
read_long
public final int read_long()Description copied from class:InputStreamReads a CORBA long (that is, Java int) value from this input stream.- Specified by:
read_longin interfaceDataInputStream- Specified by:
read_longin interfaceMarshalInputStream- Specified by:
read_longin classInputStream- Returns:
- the
intvalue read from this input stream
-
read_ulong
public final int read_ulong()Description copied from class:InputStreamReads an unsigned CORBA long (that is, Java int) value from this input stream.- Specified by:
read_ulongin interfaceDataInputStream- Specified by:
read_ulongin interfaceMarshalInputStream- Specified by:
read_ulongin classInputStream- Returns:
- the
intvalue read from this input stream
-
read_longlong
public final long read_longlong()Description copied from class:InputStreamReads a CORBA longlong (that is, Java long) value from this input stream.- Specified by:
read_longlongin interfaceDataInputStream- Specified by:
read_longlongin interfaceMarshalInputStream- Specified by:
read_longlongin classInputStream- Returns:
- the
longvalue read from this input stream
-
read_ulonglong
public final long read_ulonglong()Description copied from class:InputStreamReads a CORBA unsigned longlong (that is, Java long) value from this input stream.- Specified by:
read_ulonglongin interfaceDataInputStream- Specified by:
read_ulonglongin interfaceMarshalInputStream- Specified by:
read_ulonglongin classInputStream- Returns:
- the
longvalue read from this input stream
-
read_float
public final float read_float()Description copied from class:InputStreamReads a float value from this input stream.- Specified by:
read_floatin interfaceDataInputStream- Specified by:
read_floatin interfaceMarshalInputStream- Specified by:
read_floatin classInputStream- Returns:
- the
floatvalue read from this input stream
-
read_double
public final double read_double()Description copied from class:InputStreamReads a double value from this input stream.- Specified by:
read_doublein interfaceDataInputStream- Specified by:
read_doublein interfaceMarshalInputStream- Specified by:
read_doublein classInputStream- Returns:
- the
doublevalue read from this input stream
-
read_string
Description copied from class:InputStreamReads a string value from this input stream.- Specified by:
read_stringin interfaceDataInputStream- Specified by:
read_stringin interfaceMarshalInputStream- Specified by:
read_stringin classInputStream- Returns:
- the
Stringvalue read from this input stream
-
read_wstring
Description copied from class:InputStreamReads a wide string value from this input stream.- Specified by:
read_wstringin interfaceDataInputStream- Specified by:
read_wstringin interfaceMarshalInputStream- Specified by:
read_wstringin classInputStream- Returns:
- the
Stringvalue read from this input stream
-
read_boolean_array
public final void read_boolean_array(boolean[] value, int offset, int length) Description copied from class:InputStreamReads an array of booleans from this input stream.- Specified by:
read_boolean_arrayin interfaceMarshalInputStream- Specified by:
read_boolean_arrayin classInputStream- Parameters:
value- returned array of booleans.offset- offset on the stream.length- length of buffer to read.
-
read_char_array
public final void read_char_array(char[] value, int offset, int length) Description copied from class:InputStreamReads an array of chars from this input stream.- Specified by:
read_char_arrayin interfaceMarshalInputStream- Specified by:
read_char_arrayin classInputStream- Parameters:
value- returned array of chars.offset- offset on the stream.length- length of buffer to read.
-
read_wchar_array
public final void read_wchar_array(char[] value, int offset, int length) Description copied from class:InputStreamReads an array of wide chars from this input stream.- Specified by:
read_wchar_arrayin interfaceMarshalInputStream- Specified by:
read_wchar_arrayin classInputStream- Parameters:
value- returned array of wide chars.offset- offset on the stream.length- length of buffer to read.
-
read_octet_array
public final void read_octet_array(byte[] value, int offset, int length) Description copied from class:InputStreamReads an array of octets (that is, bytes) from this input stream.- Specified by:
read_octet_arrayin interfaceMarshalInputStream- Specified by:
read_octet_arrayin classInputStream- Parameters:
value- returned array of octets (that is, bytes).offset- offset on the stream.length- length of buffer to read.
-
read_short_array
public final void read_short_array(short[] value, int offset, int length) Description copied from class:InputStreamReads an array of shorts from this input stream.- Specified by:
read_short_arrayin interfaceMarshalInputStream- Specified by:
read_short_arrayin classInputStream- Parameters:
value- returned array of shorts.offset- offset on the stream.length- length of buffer to read.
-
read_ushort_array
public final void read_ushort_array(short[] value, int offset, int length) Description copied from class:InputStreamReads an array of unsigned shorts from this input stream.- Specified by:
read_ushort_arrayin interfaceMarshalInputStream- Specified by:
read_ushort_arrayin classInputStream- Parameters:
value- returned array of shorts.offset- offset on the stream.length- length of buffer to read.
-
read_long_array
public final void read_long_array(int[] value, int offset, int length) Description copied from class:InputStreamReads an array of CORBA longs (that is, Java ints) from this input stream.- Specified by:
read_long_arrayin interfaceMarshalInputStream- Specified by:
read_long_arrayin classInputStream- Parameters:
value- returned array of CORBA longs (that is, Java ints).offset- offset on the stream.length- length of buffer to read.
-
read_ulong_array
public final void read_ulong_array(int[] value, int offset, int length) Description copied from class:InputStreamReads an array of unsigned CORBA longs (that is, Java ints) from this input stream.- Specified by:
read_ulong_arrayin interfaceMarshalInputStream- Specified by:
read_ulong_arrayin classInputStream- Parameters:
value- returned array of CORBA longs (that is, Java ints).offset- offset on the stream.length- length of buffer to read.
-
read_longlong_array
public final void read_longlong_array(long[] value, int offset, int length) Description copied from class:InputStreamReads an array of CORBA longlongs (that is, Java longs) from this input stream.- Specified by:
read_longlong_arrayin interfaceMarshalInputStream- Specified by:
read_longlong_arrayin classInputStream- Parameters:
value- returned array of CORBA longs (that is, Java longs).offset- offset on the stream.length- length of buffer to read.
-
read_ulonglong_array
public final void read_ulonglong_array(long[] value, int offset, int length) Description copied from class:InputStreamReads an array of unsigned CORBA longlongs (that is, Java longs) from this input stream.- Specified by:
read_ulonglong_arrayin interfaceMarshalInputStream- Specified by:
read_ulonglong_arrayin classInputStream- Parameters:
value- returned array of CORBA longs (that is, Java longs).offset- offset on the stream.length- length of buffer to read.
-
read_float_array
public final void read_float_array(float[] value, int offset, int length) Description copied from class:InputStreamReads an array of floats from this input stream.- Specified by:
read_float_arrayin interfaceMarshalInputStream- Specified by:
read_float_arrayin classInputStream- Parameters:
value- returned array of floats.offset- offset on the stream.length- length of buffer to read.
-
read_double_array
public final void read_double_array(double[] value, int offset, int length) Description copied from class:InputStreamReads an array of doubles from this input stream.- Specified by:
read_double_arrayin interfaceMarshalInputStream- Specified by:
read_double_arrayin classInputStream- Parameters:
value- returned array of doubles.offset- offset on the stream.length- length of buffer to read.
-
read_Object
Description copied from class:InputStreamReads a CORBA object from this input stream.- Specified by:
read_Objectin interfaceDataInputStream- Specified by:
read_Objectin interfaceMarshalInputStream- Specified by:
read_Objectin classInputStream- Returns:
- the
Objectinstance read from this input stream.
-
read_TypeCode
Description copied from class:InputStreamReads aTypeCodefrom this input stream.- Specified by:
read_TypeCodein interfaceDataInputStream- Specified by:
read_TypeCodein interfaceMarshalInputStream- Specified by:
read_TypeCodein classInputStream- Returns:
- the
TypeCodeinstance read from this input stream.
-
read_any
Description copied from class:InputStreamReads an Any from this input stream.- Specified by:
read_anyin interfaceDataInputStream- Specified by:
read_anyin interfaceMarshalInputStream- Specified by:
read_anyin classInputStream- Returns:
- the
Anyinstance read from this input stream.
-
read_Principal
Description copied from class:InputStreamReturns principal for invocation.- Specified by:
read_Principalin interfaceMarshalInputStream- Overrides:
read_Principalin classInputStream- Returns:
- Principal for invocation.
-
read
- Overrides:
readin classInputStream- Throws:
IOException- See Also:
-
read_fixed
Description copied from class:InputStreamReads a BigDecimal number.- Overrides:
read_fixedin classInputStream- Returns:
- a java.math.BigDecimal number
-
read_Context
Description copied from class:InputStreamReads a CORBA context from the stream.- Overrides:
read_Contextin classInputStream- Returns:
- a CORBA context
- See Also:
-
read_Object
Description copied from class:InputStreamUnmarshals an object and returns a CORBA Object, which is an instance of the class passed as its argument. This class is the stub class of the expected type.- Specified by:
read_Objectin interfaceMarshalInputStream- Overrides:
read_Objectin classInputStream- Parameters:
clz- The Class object for the stub class which corresponds to the type that is statistically expected, or the Class object for the RMI/IDL interface type that is statistically expected.- Returns:
- an Object instance of clz read from this stream
- See Also:
-
orb
Description copied from class:InputStreamReturns the ORB that created this InputStream.- Overrides:
orbin classInputStream- Returns:
- the
ORBobject that created this stream - See Also:
-
read_value
Description copied from class:InputStreamUnmarshalls a value type from the input stream.- Specified by:
read_valuein interfaceMarshalInputStream- Overrides:
read_valuein classInputStream- Returns:
- the value type unmarshalled from the input stream
-
read_value
Description copied from class:InputStreamUnmarshalls a value type from the input stream.- Overrides:
read_valuein classInputStream- Parameters:
clz- is the declared type of the value to be unmarshalled- Returns:
- the value unmarshalled from the input stream
-
read_value
Description copied from class:InputStreamUnmarshalls a value type from the input stream.- Overrides:
read_valuein classInputStream- Parameters:
factory- is the instance fo the helper to be used for unmarshalling the value type- Returns:
- the value unmarshalled from the input stream
-
read_value
Description copied from class:InputStreamUnmarshalls a value type from the input stream.- Overrides:
read_valuein classInputStream- Parameters:
rep_id- identifies the type of the value to be unmarshalled- Returns:
- value type unmarshalled from the input stream
-
read_value
Description copied from class:InputStreamUnmarshalls a value type from the input stream.- Overrides:
read_valuein classInputStream- Parameters:
value- is an uninitialized value which is added to the orb's indirection table before calling Streamable._read() or CustomMarshal.unmarshal() to unmarshal the value.- Returns:
- value type unmarshalled from the input stream
-
read_abstract_interface
Description copied from class:InputStreamUnmarshal the value object or a suitable stub object.- Overrides:
read_abstract_interfacein classInputStream- Returns:
- ORB runtime returns the value object or a suitable stub object.
-
read_abstract_interface
Description copied from class:InputStreamUnmarshal the class object or the stub class corresponding to the passed type.- Overrides:
read_abstract_interfacein classInputStream- Parameters:
clz- is the Class object for the stub class which corresponds to the type that is statically expected.- Returns:
- ORB runtime returns the value object or a suitable stub object.
-
consumeEndian
public final void consumeEndian()- Specified by:
consumeEndianin interfaceMarshalInputStream
-
getPosition
public final int getPosition()- Specified by:
getPositionin interfaceMarshalInputStream
-
read_Abstract
Description copied from interface:DataInputStreamReads an IDL Abstract interface from the input stream.- Specified by:
read_Abstractin interfaceDataInputStream- Returns:
- the Abstract interface read.
-
read_Value
Description copied from interface:DataInputStreamReads an IDL value type from the input stream.- Specified by:
read_Valuein interfaceDataInputStream- Returns:
- the value type read.
-
read_any_array
Description copied from interface:DataInputStreamReads array of IDL Anys from offset for length elements from the input stream.- Specified by:
read_any_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_boolean_array
Description copied from interface:DataInputStreamReads array of IDL booleans from offset for length elements from the input stream.- Specified by:
read_boolean_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_char_array
Description copied from interface:DataInputStreamReads array of IDL characters from offset for length elements from the input stream.- Specified by:
read_char_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_wchar_array
Description copied from interface:DataInputStreamReads array of IDL wide characters from offset for length elements from the input stream.- Specified by:
read_wchar_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_octet_array
Description copied from interface:DataInputStreamReads array of IDL octets from offset for length elements from the input stream.- Specified by:
read_octet_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_short_array
Description copied from interface:DataInputStreamReads array of IDL shorts from offset for length elements from the input stream.- Specified by:
read_short_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_ushort_array
Description copied from interface:DataInputStreamReads array of IDL unsigned shorts from offset for length elements from the input stream.- Specified by:
read_ushort_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_long_array
Description copied from interface:DataInputStreamReads array of IDL longs from offset for length elements from the input stream.- Specified by:
read_long_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_ulong_array
Description copied from interface:DataInputStreamReads array of IDL unsigned longs from offset for length elements from the input stream.- Specified by:
read_ulong_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_ulonglong_array
Description copied from interface:DataInputStreamReads array of IDL unsigned long longs from offset for length elements from the input stream.- Specified by:
read_ulonglong_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_longlong_array
Description copied from interface:DataInputStreamReads array of IDL long longs from offset for length elements from the input stream.- Specified by:
read_longlong_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_float_array
Description copied from interface:DataInputStreamReads array of IDL floats from offset for length elements from the input stream.- Specified by:
read_float_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
read_double_array
Description copied from interface:DataInputStreamReads array of IDL doubles from offset for length elements from the input stream.- Specified by:
read_double_arrayin interfaceDataInputStream- Parameters:
seq- The out parameter holder for the array to be read.offset- The index into seq of the first element to read from the input stream.length- The number of elements to read from the input stream.
-
_truncatable_ids
Description copied from interface:ValueBaseProvides truncatable repository ids.- Specified by:
_truncatable_idsin interfaceValueBase- Returns:
- a String array--list of truncatable repository ids.
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public final void mark(int readlimit) - Specified by:
markin interfaceMarshalInputStream- Overrides:
markin classInputStream
-
reset
public final void reset()- Specified by:
resetin interfaceMarshalInputStream- Overrides:
resetin classInputStream
-
markSupported
public final boolean markSupported()- Overrides:
markSupportedin classInputStream
-
dup
-
read_fixed
-
isLittleEndian
public final boolean isLittleEndian() -
getByteBuffer
-
setByteBuffer
-
setByteBufferWithInfo
-
isSharing
return true if our ByteBuffer is sharing/equal to bb -
getBufferLength
public final int getBufferLength() -
setBufferLength
protected final void setBufferLength(int value) -
getIndex
protected final int getIndex() -
setIndex
protected final void setIndex(int value) -
orb
-
getGIOPVersion
-
getBufferManager
-
getCodeBase
-
createCharBTCConverter
-
createWCharBTCConverter
-
alignOnBoundary
public void alignOnBoundary(int octetBoundary) Aligns the current position on the given octet boundary if there are enough bytes available to do so. Otherwise, it just returns. This is used for some (but not all) GIOP 1.2 message headers. -
setHeaderPadding
public void setHeaderPadding(boolean headerPadding) -
performORBVersionSpecificInit
public void performORBVersionSpecificInit()This must be called after determining the proper ORB version, and setting it on the stream's ORB instance. It can be called after reading the service contexts, since that is the only place we can get the ORB version info. Trying to unmarshal things requiring repository IDs before calling this will result in NullPtrExceptions.- Specified by:
performORBVersionSpecificInitin interfaceMarshalInputStream
-
resetCodeSetConverters
public void resetCodeSetConverters()Resets any internal references to code set converters. This is useful for forcing the CDR stream to reacquire converters (probably from its subclasses) when state has changed.- Specified by:
resetCodeSetConvertersin interfaceMarshalInputStream
-
setMessageMediator
-
getMessageMediator
-
start_value
public void start_value()Description copied from interface:ValueInputStreamThe start_value method reads a valuetype header for a nested custom valuetype and increments the valuetype nesting depth.- Specified by:
start_valuein interfaceValueInputStream
-
end_value
public void end_value()Description copied from interface:ValueInputStreamThe end_value method reads the end tag for the nested custom valuetype (after skipping any data that precedes the end tag) and decrements the valuetype nesting depth.- Specified by:
end_valuein interfaceValueInputStream
-