Package com.sun.corba.ee.impl.encoding
Class CDRInputObject
- java.lang.Object
-
- java.io.InputStream
-
- org.omg.CORBA.portable.InputStream
-
- org.omg.CORBA_2_3.portable.InputStream
-
- com.sun.corba.ee.impl.encoding.CDRInputObject
-
- All Implemented Interfaces:
MarshalInputStream,java.io.Closeable,java.io.Serializable,java.lang.AutoCloseable,DataInputStream,IDLEntity,ValueBase,ValueInputStream
- Direct Known Subclasses:
EncapsInputStream
public class CDRInputObject extends InputStream implements MarshalInputStream, DataInputStream, ValueInputStream
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCDRInputObject.InputStreamFactory
-
Field Summary
Fields Modifier and Type Field Description private ConnectioncorbaConnectionprivate Messageheaderprivate CDRInputStreamBaseimplprotected MessageMediatormessageMediatorprivate static OMGSystemExceptionomgWrapperprivate ORBorbprivate static longserialVersionUIDprivate booleanunmarshaledHeaderprivate static ORBUtilSystemExceptionwrapper
-
Constructor Summary
Constructors Modifier Constructor Description CDRInputObject()CDRInputObject(CDRInputObject is)CDRInputObject(ORB orb, Connection corbaConnection, java.nio.ByteBuffer byteBuffer, Message header)protectedCDRInputObject(ORB orb, java.nio.ByteBuffer byteBuffer, int size, java.nio.ByteOrder byteOrder, GIOPVersion version, BufferManagerRead bufMgr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]_truncatable_ids()Provides truncatable repository ids.voidaddFragment(FragmentMessage header, java.nio.ByteBuffer byteBuffer)voidalignOnBoundary(int octetBoundary)Aligns the current position on the given octet boundary if there are enough bytes available to do so.intavailable()voidcancelProcessing(int requestId)voidclose()voidconsumeEndian()private static BufferManagerReadcreateBufferManagerRead(ORB orb, Message header)private voidcreateCDRInputStream(GIOPVersion version, java.nio.ByteBuffer byteBuffer, int size, java.nio.ByteOrder byteOrder, BufferManagerRead bufMgr)protected CodeSetConversion.BTCConvertercreateCharBTCConverter()Override the default CDR factory behavior to get the negotiated code sets from the connection.protected CodeSetConversion.BTCConvertercreateWCharBTCConverter()protected voiddprint(java.lang.String msg)CDRInputObjectdup()voidend_value()The 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.intgetBufferLength()BufferManagerReadgetBufferManager()java.nio.ByteOrdergetByteOrder()CodeBasegetCodeBase()private CodeSetComponentInfo.CodeSetContextgetCodeSets()ConnectiongetConnection()GIOPVersiongetGIOPVersion()MessagegetMessageHeader()MessageMediatorgetMessageMediator()intgetPosition()voidmark(int readlimit)booleanmarkSupported()ORBorb()Returns the ORB that created this InputStream.voidorb(ORB orb)voidperformORBVersionSpecificInit()This must be called after determining the proper ORB version, and setting it on the stream's ORB instance.intread()intread(byte[] b)intread(byte[] b, int off, int len)java.lang.Objectread_Abstract()Reads an IDL Abstract interface from the input stream.java.lang.Objectread_abstract_interface()Unmarshal the value object or a suitable stub object.java.lang.Objectread_abstract_interface(java.lang.Class clz)Unmarshal the class object or the stub class corresponding to the passed type.Anyread_any()Reads an Any from this input stream.voidread_any_array(AnySeqHolder seq, int offset, int length)Reads array of IDL Anys from offset for length elements from the input stream.booleanread_boolean()Reads a boolean value from this input stream.voidread_boolean_array(boolean[] value, int offset, int length)Reads an array of booleans from this input stream.voidread_boolean_array(BooleanSeqHolder seq, int offset, int length)Reads array of IDL booleans from offset for length elements from the input stream.charread_char()Reads a char value from this input stream.voidread_char_array(char[] value, int offset, int length)Reads an array of chars from this input stream.voidread_char_array(CharSeqHolder seq, int offset, int length)Reads array of IDL characters from offset for length elements from the input stream.Contextread_Context()Reads a CORBA context from the stream.doubleread_double()Reads a double value from this input stream.voidread_double_array(double[] value, int offset, int length)Reads an array of boubles from this input stream.voidread_double_array(DoubleSeqHolder seq, int offset, int length)Reads array of IDL doubles from offset for length elements from the input stream.java.math.BigDecimalread_fixed()Reads a BigDecimal number.java.math.BigDecimalread_fixed(short digits, short scale)floatread_float()Reads a float value from this input stream.voidread_float_array(float[] value, int offset, int length)Reads an array of floats from this input stream.voidread_float_array(FloatSeqHolder seq, int offset, int length)Reads array of IDL floats from offset for length elements from the input stream.intread_long()Reads a CORBA long (that is, Java int) value from this input stream.voidread_long_array(int[] value, int offset, int length)Reads an array of CORBA longs (that is, Java ints) from this input stream.voidread_long_array(LongSeqHolder seq, int offset, int length)Reads array of IDL longs from offset for length elements from the input stream.longread_longlong()Reads a CORBA longlong (that is, Java long) value from this input stream.voidread_longlong_array(long[] value, int offset, int length)Reads an array of CORBA longlongs (that is, Java longs) from this input stream.voidread_longlong_array(LongLongSeqHolder seq, int offset, int length)Reads array of IDL long longs from offset for length elements from the input stream.Objectread_Object()Reads a CORBA object from this input stream.Objectread_Object(java.lang.Class clz)Unmarshals an object and returns a CORBA Object, which is an instance of the class passed as its argument.byteread_octet()Reads an octet (that is, a byte) value from this input stream.voidread_octet_array(byte[] value, int offset, int length)Reads an array of octets (that is, bytes) from this input stream.voidread_octet_array(OctetSeqHolder seq, int offset, int length)Reads array of IDL octets from offset for length elements from the input stream.Principalread_Principal()Returns principle for invocation.shortread_short()Reads a short value from this input stream.voidread_short_array(short[] value, int offset, int length)Reads an array of shorts from this input stream.voidread_short_array(ShortSeqHolder seq, int offset, int length)Reads array of IDL shorts from offset for length elements from the input stream.java.lang.Stringread_string()Reads a string value from this input stream.TypeCoderead_TypeCode()Reads a TypeCode from this input stream.intread_ulong()Reads an unsigned CORBA long (that is, Java int) value from this input stream.voidread_ulong_array(int[] value, int offset, int length)Reads an array of unsigned CORBA longs (that is, Java ints) from this input stream.voidread_ulong_array(ULongSeqHolder seq, int offset, int length)Reads array of IDL unsigned longs from offset for length elements from the input stream.longread_ulonglong()Reads a CORBA unsigned longlong (that is, Java long) value from this input stream.voidread_ulonglong_array(long[] value, int offset, int length)Reads an array of unsigned CORBA longlongs (that is, Java longs) from this input stream.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.shortread_ushort()Reads a unsigned short value from this input stream.voidread_ushort_array(short[] value, int offset, int length)Reads an array of unsigned shorts from this input stream.voidread_ushort_array(UShortSeqHolder seq, int offset, int length)Reads array of IDL unsigned shorts from offset for length elements from the input stream.java.io.Serializableread_value()Unmarshalls a value type from the input stream.java.io.Serializableread_value(java.io.Serializable value)Unmarshalls a value type from the input stream.java.io.Serializableread_value(java.lang.Class clz)Unmarshalls a value type from the input stream.java.io.Serializableread_value(java.lang.String rep_id)Unmarshalls a value type from the input stream.java.io.Serializableread_value(BoxedValueHelper factory)Unmarshalls a value type from the input stream.java.io.Serializableread_Value()Reads an IDL value type from the input stream.charread_wchar()Reads a wide char value from this input stream.voidread_wchar_array(char[] value, int offset, int length)Reads an array of wide chars from this input stream.voidread_wchar_array(WCharSeqHolder seq, int offset, int length)Reads array of IDL wide characters from offset for length elements from the input stream.java.lang.Stringread_wstring()Reads a wide string value from this input stream.private voidreadObject(java.io.ObjectInputStream is)voidreset()voidresetCodeSetConverters()Resets any internal references to code set converters.protected voidsetBufferLength(int value)voidsetHeaderPadding(boolean headerPadding)protected voidsetIndex(int value)voidsetMessageMediator(MessageMediator messageMediator)longskip(long n)voidstart_value()The start_value method reads a valuetype header for a nested custom valuetype and increments the valuetype nesting depth.protected static java.nio.ByteOrdertoByteOrder(boolean littleEndian)voidunmarshalHeader()Unmarshal the extended GIOP header NOTE: May be fragmented, so should not be called by the ReaderThread.private voidunmarshalledHeader(Message msg)
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
omgWrapper
private static final OMGSystemException omgWrapper
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
orb
private transient ORB orb
-
impl
private transient CDRInputStreamBase impl
-
corbaConnection
private transient Connection corbaConnection
-
header
private transient Message header
-
messageMediator
protected transient MessageMediator messageMediator
-
unmarshaledHeader
private boolean unmarshaledHeader
-
-
Constructor Detail
-
CDRInputObject
public CDRInputObject()
-
CDRInputObject
public CDRInputObject(CDRInputObject is)
-
CDRInputObject
protected CDRInputObject(ORB orb, java.nio.ByteBuffer byteBuffer, int size, java.nio.ByteOrder byteOrder, GIOPVersion version, BufferManagerRead bufMgr)
-
CDRInputObject
public CDRInputObject(ORB orb, Connection corbaConnection, java.nio.ByteBuffer byteBuffer, Message header)
-
-
Method Detail
-
readObject
private void readObject(java.io.ObjectInputStream is) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
addFragment
public void addFragment(FragmentMessage header, java.nio.ByteBuffer byteBuffer)
-
cancelProcessing
public void cancelProcessing(int requestId)
-
createCDRInputStream
private void createCDRInputStream(GIOPVersion version, java.nio.ByteBuffer byteBuffer, int size, java.nio.ByteOrder byteOrder, BufferManagerRead bufMgr)
-
toByteOrder
protected static java.nio.ByteOrder toByteOrder(boolean littleEndian)
-
createBufferManagerRead
private static BufferManagerRead createBufferManagerRead(ORB orb, Message header)
-
getConnection
public final Connection getConnection()
-
getMessageHeader
public Message getMessageHeader()
-
unmarshalledHeader
private void unmarshalledHeader(Message msg)
-
unmarshalHeader
public void unmarshalHeader()
Unmarshal the extended GIOP header NOTE: May be fragmented, so should not be called by the ReaderThread. See CorbaResponseWaitingRoomImpl.waitForResponse. It is done there in the client thread.
-
createCharBTCConverter
protected CodeSetConversion.BTCConverter createCharBTCConverter()
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.- Returns:
- The converter.
-
createWCharBTCConverter
protected CodeSetConversion.BTCConverter createWCharBTCConverter()
-
getCodeSets
private CodeSetComponentInfo.CodeSetContext getCodeSets()
-
getCodeBase
public CodeBase getCodeBase()
-
dup
public CDRInputObject dup()
-
dprint
protected void dprint(java.lang.String msg)
-
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
public final java.lang.String 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
public final java.lang.String 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 boubles 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
public final Object 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
public final TypeCode read_TypeCode()
Description copied from class:InputStreamReads a TypeCode from 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
public final Any 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
public final Principal read_Principal()
Description copied from class:InputStreamReturns principle for invocation.- Specified by:
read_Principalin interfaceMarshalInputStream- Overrides:
read_Principalin classInputStream- Returns:
- Principle for invocation
-
read
public final int read() throws java.io.IOException- Overrides:
readin classInputStream- Throws:
java.io.IOException- See Also:
portablepackage comments for unimplemented features
-
read_fixed
public final java.math.BigDecimal read_fixed()
Description copied from class:InputStreamReads a BigDecimal number.- Overrides:
read_fixedin classInputStream- Returns:
- a java.math.BigDecimal number
-
read_Context
public final Context read_Context()
Description copied from class:InputStreamReads a CORBA context from the stream.- Overrides:
read_Contextin classInputStream- Returns:
- a CORBA context
- See Also:
portablepackage comments for unimplemented features
-
read_Object
public final Object read_Object(java.lang.Class clz)
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:
portablepackage comments for unimplemented features
-
orb
public final ORB orb()
Description copied from class:InputStreamReturns the ORB that created this InputStream.- Overrides:
orbin classInputStream- Returns:
- the
ORBobject that created this stream - See Also:
portablepackage comments for unimplemented features
-
read_value
public final java.io.Serializable 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
public final java.io.Serializable read_value(java.lang.Class clz)
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
public final java.io.Serializable read_value(BoxedValueHelper factory)
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
public final java.io.Serializable read_value(java.lang.String rep_id)
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
public final java.io.Serializable read_value(java.io.Serializable 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
public final java.lang.Object 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
public final java.lang.Object read_abstract_interface(java.lang.Class clz)
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
public final java.lang.Object 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
public final java.io.Serializable 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
public final void read_any_array(AnySeqHolder seq, int offset, int length)
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
public final void read_boolean_array(BooleanSeqHolder seq, int offset, int length)
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
public final void read_char_array(CharSeqHolder seq, int offset, int length)
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
public final void read_wchar_array(WCharSeqHolder seq, int offset, int length)
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
public final void read_octet_array(OctetSeqHolder seq, int offset, int length)
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
public final void read_short_array(ShortSeqHolder seq, int offset, int length)
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
public final void read_ushort_array(UShortSeqHolder seq, int offset, int length)
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
public final void read_long_array(LongSeqHolder seq, int offset, int length)
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
public final void read_ulong_array(ULongSeqHolder seq, int offset, int length)
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
public final void read_ulonglong_array(ULongLongSeqHolder seq, int offset, int length)
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
public final void read_longlong_array(LongLongSeqHolder seq, int offset, int length)
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
public final void read_float_array(FloatSeqHolder seq, int offset, int length)
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
public final void read_double_array(DoubleSeqHolder seq, int offset, int length)
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
public final java.lang.String[] _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
public final int read(byte[] b) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public final int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
skip
public final long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public final int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
mark
public final void mark(int readlimit)
- Specified by:
markin interfaceMarshalInputStream- Overrides:
markin classjava.io.InputStream
-
reset
public final void reset()
- Specified by:
resetin interfaceMarshalInputStream- Overrides:
resetin classjava.io.InputStream
-
markSupported
public final boolean markSupported()
- Overrides:
markSupportedin classjava.io.InputStream
-
read_fixed
public final java.math.BigDecimal read_fixed(short digits, short scale)
-
getByteOrder
public final java.nio.ByteOrder getByteOrder()
-
getBufferLength
public final int getBufferLength()
-
setBufferLength
protected final void setBufferLength(int value)
-
setIndex
protected final void setIndex(int value)
-
orb
public final void orb(ORB orb)
-
getGIOPVersion
public final GIOPVersion getGIOPVersion()
-
getBufferManager
public final BufferManagerRead getBufferManager()
-
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.- Parameters:
octetBoundary- alignment boundary.
-
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
public void setMessageMediator(MessageMediator messageMediator)
-
getMessageMediator
public MessageMediator 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
-
-