Class WrapperInputStream
java.lang.Object
java.io.InputStream
org.omg.CORBA.portable.InputStream
org.omg.CORBA_2_3.portable.InputStream
com.sun.corba.ee.impl.encoding.WrapperInputStream
- All Implemented Interfaces:
MarshalInputStream, TypeCodeReader, Closeable, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate CDRInputObjectprivate Map<Integer, TypeCodeImpl> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTypeCodeAtPosition(TypeCodeImpl tc, int position) intvoidclose()voidintintgetTypeCodeAtPosition(int position) voidmark(int readlimit) booleanorb()Returns the ORB that created this InputStream.voidThis must be called once before unmarshaling valuetypes or anything that uses repository IDs.voidintread()intread(byte[] b) intread(byte[] b, int off, int len) read_any()Reads an Any from this input stream.booleanReads 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.charReads 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.Reads a CORBA context from the stream.doubleReads 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.Reads a BigDecimal number.floatReads 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.intReads 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.longReads 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.Reads a CORBA object from this input stream.byteReads 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.Returns principle for invocation.shortReads 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.Reads a string value from this input stream.Reads a TypeCode from this input stream.intReads 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.longReads 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.shortReads 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.Unmarshalls a value type from the input stream.charReads 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.Reads a wide string value from this input stream.voidreset()voidTells the input stream to null any code set converter references, forcing it to reacquire them if it needs converters again.voidsetEnclosingInputStream(InputStream enclosure) longskip(long n) Methods inherited from class InputStream
read_abstract_interface, read_abstract_interface, read_value, read_value, read_value, read_valueMethods inherited from class InputStream
read_ObjectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MarshalInputStream
read_Object
-
Field Details
-
stream
-
typeMap
-
startPos
private int startPos
-
-
Constructor Details
-
WrapperInputStream
-
-
Method Details
-
read
- Overrides:
readin classInputStream- Throws:
IOException- See Also:
-
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 void mark(int readlimit) - Specified by:
markin interfaceMarshalInputStream- Overrides:
markin classInputStream
-
reset
public void reset()- Specified by:
resetin interfaceMarshalInputStream- Overrides:
resetin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
getPosition
public int getPosition()- Specified by:
getPositionin interfaceMarshalInputStream- Specified by:
getPositionin interfaceTypeCodeReader
-
consumeEndian
public void consumeEndian()- Specified by:
consumeEndianin interfaceMarshalInputStream
-
read_boolean
public boolean read_boolean()Description copied from class:InputStreamReads a boolean value from this input stream.- Specified by:
read_booleanin interfaceMarshalInputStream- Specified by:
read_booleanin classInputStream- Returns:
- the
booleanvalue read from this input stream
-
read_char
public char read_char()Description copied from class:InputStreamReads a char value from this input stream.- Specified by:
read_charin interfaceMarshalInputStream- Specified by:
read_charin classInputStream- Returns:
- the
charvalue read from this input stream
-
read_wchar
public char read_wchar()Description copied from class:InputStreamReads a wide char value from this input stream.- Specified by:
read_wcharin interfaceMarshalInputStream- Specified by:
read_wcharin classInputStream- Returns:
- the
charvalue read from this input stream
-
read_octet
public byte read_octet()Description copied from class:InputStreamReads an octet (that is, a byte) value from this input stream.- Specified by:
read_octetin interfaceMarshalInputStream- Specified by:
read_octetin classInputStream- Returns:
- the
bytevalue read from this input stream
-
read_short
public short read_short()Description copied from class:InputStreamReads a short value from this input stream.- Specified by:
read_shortin interfaceMarshalInputStream- Specified by:
read_shortin classInputStream- Returns:
- the
shortvalue read from this input stream
-
read_ushort
public short read_ushort()Description copied from class:InputStreamReads a unsigned short value from this input stream.- Specified by:
read_ushortin interfaceMarshalInputStream- Specified by:
read_ushortin classInputStream- Returns:
- the
shortvalue read from this input stream
-
read_long
public int read_long()Description copied from class:InputStreamReads a CORBA long (that is, Java int) value from this input stream.- Specified by:
read_longin interfaceMarshalInputStream- Specified by:
read_longin classInputStream- Returns:
- the
intvalue read from this input stream
-
read_ulong
public 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 interfaceMarshalInputStream- Specified by:
read_ulongin classInputStream- Returns:
- the
intvalue read from this input stream
-
read_longlong
public long read_longlong()Description copied from class:InputStreamReads a CORBA longlong (that is, Java long) value from this input stream.- Specified by:
read_longlongin interfaceMarshalInputStream- Specified by:
read_longlongin classInputStream- Returns:
- the
longvalue read from this input stream
-
read_ulonglong
public 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 interfaceMarshalInputStream- Specified by:
read_ulonglongin classInputStream- Returns:
- the
longvalue read from this input stream
-
read_float
public float read_float()Description copied from class:InputStreamReads a float value from this input stream.- Specified by:
read_floatin interfaceMarshalInputStream- Specified by:
read_floatin classInputStream- Returns:
- the
floatvalue read from this input stream
-
read_double
public double read_double()Description copied from class:InputStreamReads a double value from this input stream.- 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 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 interfaceMarshalInputStream- Specified by:
read_wstringin classInputStream- Returns:
- the
Stringvalue read from this input stream
-
read_boolean_array
public 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 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 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 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 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 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 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 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 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 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 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 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
Description copied from class:InputStreamReads a CORBA object from this input stream.- Specified by:
read_Objectin interfaceMarshalInputStream- Specified by:
read_Objectin classInputStream- Returns:
- the
Objectinstance read from this input stream
-
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_TypeCode
Description copied from class:InputStreamReads a TypeCode from this input stream.- 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 interfaceMarshalInputStream- Specified by:
read_anyin classInputStream- Returns:
- the
Anyinstance read from this input stream
-
read_Principal
Description copied from class:InputStreamReturns principle for invocation.- Specified by:
read_Principalin interfaceMarshalInputStream- Overrides:
read_Principalin classInputStream- Returns:
- Principle for invocation
-
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:
-
orb
Description copied from class:InputStreamReturns the ORB that created this InputStream.- Overrides:
orbin classInputStream- Returns:
- the
ORBobject that created this stream - See Also:
-
addTypeCodeAtPosition
- Specified by:
addTypeCodeAtPositionin interfaceTypeCodeReader
-
getTypeCodeAtPosition
- Specified by:
getTypeCodeAtPositionin interfaceTypeCodeReader
-
setEnclosingInputStream
- Specified by:
setEnclosingInputStreamin interfaceTypeCodeReader
-
getTopLevelStream
- Specified by:
getTopLevelStreamin interfaceTypeCodeReader
-
getTopLevelPosition
public int getTopLevelPosition()- Specified by:
getTopLevelPositionin interfaceTypeCodeReader
-
performORBVersionSpecificInit
public void performORBVersionSpecificInit()Description copied from interface:MarshalInputStreamThis must be called once before unmarshaling valuetypes or anything that uses repository IDs. The ORB's version should be set to the desired value prior to calling.- Specified by:
performORBVersionSpecificInitin interfaceMarshalInputStream
-
resetCodeSetConverters
public void resetCodeSetConverters()Description copied from interface:MarshalInputStreamTells the input stream to null any code set converter references, forcing it to reacquire them if it needs converters again. This is used when the server input stream needs to switch the connection's char code set converter to something different after reading the code set service context for the first time. Initially, we use ISO8859-1 to read the operation name (it can't be more than ASCII).- Specified by:
resetCodeSetConvertersin interfaceMarshalInputStream
-
printTypeMap
public void printTypeMap()- Specified by:
printTypeMapin interfaceTypeCodeReader
-