Package com.sun.corba.ee.impl.encoding
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 int
private CDRInputObject
private Map
<Integer, TypeCodeImpl> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTypeCodeAtPosition
(TypeCodeImpl tc, int position) int
void
close()
void
int
int
getTypeCodeAtPosition
(int position) void
mark
(int readlimit) boolean
orb()
Returns the ORB that created this InputStream.void
This must be called once before unmarshaling valuetypes or anything that uses repository IDs.void
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) read_any()
Reads an Any from this input stream.boolean
Reads a boolean value from this input stream.void
read_boolean_array
(boolean[] value, int offset, int length) Reads an array of booleans from this input stream.char
Reads a char value from this input stream.void
read_char_array
(char[] value, int offset, int length) Reads an array of chars from this input stream.Reads a CORBA context from the stream.double
Reads a double value from this input stream.void
read_double_array
(double[] value, int offset, int length) Reads an array of boubles from this input stream.Reads a BigDecimal number.float
Reads a float value from this input stream.void
read_float_array
(float[] value, int offset, int length) Reads an array of floats from this input stream.int
Reads a CORBA long (that is, Java int) value from this input stream.void
read_long_array
(int[] value, int offset, int length) Reads an array of CORBA longs (that is, Java ints) from this input stream.long
Reads a CORBA longlong (that is, Java long) value from this input stream.void
read_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.byte
Reads an octet (that is, a byte) value from this input stream.void
read_octet_array
(byte[] value, int offset, int length) Reads an array of octets (that is, bytes) from this input stream.Returns principle for invocation.short
Reads a short value from this input stream.void
read_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.int
Reads an unsigned CORBA long (that is, Java int) value from this input stream.void
read_ulong_array
(int[] value, int offset, int length) Reads an array of unsigned CORBA longs (that is, Java ints) from this input stream.long
Reads a CORBA unsigned longlong (that is, Java long) value from this input stream.void
read_ulonglong_array
(long[] value, int offset, int length) Reads an array of unsigned CORBA longlongs (that is, Java longs) from this input stream.short
Reads a unsigned short value from this input stream.void
read_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.char
Reads a wide char value from this input stream.void
read_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.void
reset()
void
Tells the input stream to null any code set converter references, forcing it to reacquire them if it needs converters again.void
setEnclosingInputStream
(InputStream enclosure) long
skip
(long n) Methods inherited from class org.omg.CORBA_2_3.portable.InputStream
read_abstract_interface, read_abstract_interface, read_value, read_value, read_value, read_value
Methods inherited from class org.omg.CORBA.portable.InputStream
read_Object
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sun.corba.ee.impl.encoding.MarshalInputStream
read_Object
-
Field Details
-
stream
-
typeMap
-
startPos
private int startPos
-
-
Constructor Details
-
WrapperInputStream
-
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
- See Also:
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Specified by:
mark
in interfaceMarshalInputStream
- Overrides:
mark
in classInputStream
-
reset
public void reset()- Specified by:
reset
in interfaceMarshalInputStream
- Overrides:
reset
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
getPosition
public int getPosition()- Specified by:
getPosition
in interfaceMarshalInputStream
- Specified by:
getPosition
in interfaceTypeCodeReader
-
consumeEndian
public void consumeEndian()- Specified by:
consumeEndian
in interfaceMarshalInputStream
-
read_boolean
public boolean read_boolean()Description copied from class:InputStream
Reads a boolean value from this input stream.- Specified by:
read_boolean
in interfaceMarshalInputStream
- Specified by:
read_boolean
in classInputStream
- Returns:
- the
boolean
value read from this input stream
-
read_char
public char read_char()Description copied from class:InputStream
Reads a char value from this input stream.- Specified by:
read_char
in interfaceMarshalInputStream
- Specified by:
read_char
in classInputStream
- Returns:
- the
char
value read from this input stream
-
read_wchar
public char read_wchar()Description copied from class:InputStream
Reads a wide char value from this input stream.- Specified by:
read_wchar
in interfaceMarshalInputStream
- Specified by:
read_wchar
in classInputStream
- Returns:
- the
char
value read from this input stream
-
read_octet
public byte read_octet()Description copied from class:InputStream
Reads an octet (that is, a byte) value from this input stream.- Specified by:
read_octet
in interfaceMarshalInputStream
- Specified by:
read_octet
in classInputStream
- Returns:
- the
byte
value read from this input stream
-
read_short
public short read_short()Description copied from class:InputStream
Reads a short value from this input stream.- Specified by:
read_short
in interfaceMarshalInputStream
- Specified by:
read_short
in classInputStream
- Returns:
- the
short
value read from this input stream
-
read_ushort
public short read_ushort()Description copied from class:InputStream
Reads a unsigned short value from this input stream.- Specified by:
read_ushort
in interfaceMarshalInputStream
- Specified by:
read_ushort
in classInputStream
- Returns:
- the
short
value read from this input stream
-
read_long
public int read_long()Description copied from class:InputStream
Reads a CORBA long (that is, Java int) value from this input stream.- Specified by:
read_long
in interfaceMarshalInputStream
- Specified by:
read_long
in classInputStream
- Returns:
- the
int
value read from this input stream
-
read_ulong
public int read_ulong()Description copied from class:InputStream
Reads an unsigned CORBA long (that is, Java int) value from this input stream.- Specified by:
read_ulong
in interfaceMarshalInputStream
- Specified by:
read_ulong
in classInputStream
- Returns:
- the
int
value read from this input stream
-
read_longlong
public long read_longlong()Description copied from class:InputStream
Reads a CORBA longlong (that is, Java long) value from this input stream.- Specified by:
read_longlong
in interfaceMarshalInputStream
- Specified by:
read_longlong
in classInputStream
- Returns:
- the
long
value read from this input stream
-
read_ulonglong
public long read_ulonglong()Description copied from class:InputStream
Reads a CORBA unsigned longlong (that is, Java long) value from this input stream.- Specified by:
read_ulonglong
in interfaceMarshalInputStream
- Specified by:
read_ulonglong
in classInputStream
- Returns:
- the
long
value read from this input stream
-
read_float
public float read_float()Description copied from class:InputStream
Reads a float value from this input stream.- Specified by:
read_float
in interfaceMarshalInputStream
- Specified by:
read_float
in classInputStream
- Returns:
- the
float
value read from this input stream
-
read_double
public double read_double()Description copied from class:InputStream
Reads a double value from this input stream.- Specified by:
read_double
in interfaceMarshalInputStream
- Specified by:
read_double
in classInputStream
- Returns:
- the
double
value read from this input stream
-
read_string
Description copied from class:InputStream
Reads a string value from this input stream.- Specified by:
read_string
in interfaceMarshalInputStream
- Specified by:
read_string
in classInputStream
- Returns:
- the
String
value read from this input stream
-
read_wstring
Description copied from class:InputStream
Reads a wide string value from this input stream.- Specified by:
read_wstring
in interfaceMarshalInputStream
- Specified by:
read_wstring
in classInputStream
- Returns:
- the
String
value read from this input stream
-
read_boolean_array
public void read_boolean_array(boolean[] value, int offset, int length) Description copied from class:InputStream
Reads an array of booleans from this input stream.- Specified by:
read_boolean_array
in interfaceMarshalInputStream
- Specified by:
read_boolean_array
in 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:InputStream
Reads an array of chars from this input stream.- Specified by:
read_char_array
in interfaceMarshalInputStream
- Specified by:
read_char_array
in 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:InputStream
Reads an array of wide chars from this input stream.- Specified by:
read_wchar_array
in interfaceMarshalInputStream
- Specified by:
read_wchar_array
in 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:InputStream
Reads an array of octets (that is, bytes) from this input stream.- Specified by:
read_octet_array
in interfaceMarshalInputStream
- Specified by:
read_octet_array
in 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:InputStream
Reads an array of shorts from this input stream.- Specified by:
read_short_array
in interfaceMarshalInputStream
- Specified by:
read_short_array
in 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:InputStream
Reads an array of unsigned shorts from this input stream.- Specified by:
read_ushort_array
in interfaceMarshalInputStream
- Specified by:
read_ushort_array
in 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:InputStream
Reads an array of CORBA longs (that is, Java ints) from this input stream.- Specified by:
read_long_array
in interfaceMarshalInputStream
- Specified by:
read_long_array
in 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:InputStream
Reads an array of unsigned CORBA longs (that is, Java ints) from this input stream.- Specified by:
read_ulong_array
in interfaceMarshalInputStream
- Specified by:
read_ulong_array
in 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:InputStream
Reads an array of CORBA longlongs (that is, Java longs) from this input stream.- Specified by:
read_longlong_array
in interfaceMarshalInputStream
- Specified by:
read_longlong_array
in 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:InputStream
Reads an array of unsigned CORBA longlongs (that is, Java longs) from this input stream.- Specified by:
read_ulonglong_array
in interfaceMarshalInputStream
- Specified by:
read_ulonglong_array
in 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:InputStream
Reads an array of floats from this input stream.- Specified by:
read_float_array
in interfaceMarshalInputStream
- Specified by:
read_float_array
in 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:InputStream
Reads an array of boubles from this input stream.- Specified by:
read_double_array
in interfaceMarshalInputStream
- Specified by:
read_double_array
in classInputStream
- Parameters:
value
- returned array of doubles.offset
- offset on the stream.length
- length of buffer to read
-
read_Object
Description copied from class:InputStream
Reads a CORBA object from this input stream.- Specified by:
read_Object
in interfaceMarshalInputStream
- Specified by:
read_Object
in classInputStream
- Returns:
- the
Object
instance read from this input stream
-
read_value
Description copied from class:InputStream
Unmarshalls a value type from the input stream.- Specified by:
read_value
in interfaceMarshalInputStream
- Overrides:
read_value
in classInputStream
- Returns:
- the value type unmarshalled from the input stream
-
read_TypeCode
Description copied from class:InputStream
Reads a TypeCode from this input stream.- Specified by:
read_TypeCode
in interfaceMarshalInputStream
- Specified by:
read_TypeCode
in classInputStream
- Returns:
- the
TypeCode
instance read from this input stream
-
read_any
Description copied from class:InputStream
Reads an Any from this input stream.- Specified by:
read_any
in interfaceMarshalInputStream
- Specified by:
read_any
in classInputStream
- Returns:
- the
Any
instance read from this input stream
-
read_Principal
Description copied from class:InputStream
Returns principle for invocation.- Specified by:
read_Principal
in interfaceMarshalInputStream
- Overrides:
read_Principal
in classInputStream
- Returns:
- Principle for invocation
-
read_fixed
Description copied from class:InputStream
Reads a BigDecimal number.- Overrides:
read_fixed
in classInputStream
- Returns:
- a java.math.BigDecimal number
-
read_Context
Description copied from class:InputStream
Reads a CORBA context from the stream.- Overrides:
read_Context
in classInputStream
- Returns:
- a CORBA context
- See Also:
-
orb
Description copied from class:InputStream
Returns the ORB that created this InputStream.- Overrides:
orb
in classInputStream
- Returns:
- the
ORB
object that created this stream - See Also:
-
addTypeCodeAtPosition
- Specified by:
addTypeCodeAtPosition
in interfaceTypeCodeReader
-
getTypeCodeAtPosition
- Specified by:
getTypeCodeAtPosition
in interfaceTypeCodeReader
-
setEnclosingInputStream
- Specified by:
setEnclosingInputStream
in interfaceTypeCodeReader
-
getTopLevelStream
- Specified by:
getTopLevelStream
in interfaceTypeCodeReader
-
getTopLevelPosition
public int getTopLevelPosition()- Specified by:
getTopLevelPosition
in interfaceTypeCodeReader
-
performORBVersionSpecificInit
public void performORBVersionSpecificInit()Description copied from interface:MarshalInputStream
This 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:
performORBVersionSpecificInit
in interfaceMarshalInputStream
-
resetCodeSetConverters
public void resetCodeSetConverters()Description copied from interface:MarshalInputStream
Tells 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:
resetCodeSetConverters
in interfaceMarshalInputStream
-
printTypeMap
public void printTypeMap()- Specified by:
printTypeMap
in interfaceTypeCodeReader
-