Package org.omg.CORBA.portable
Class InputStream
java.lang.Object
java.io.InputStream
org.omg.CORBA.portable.InputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
InputStream
InputStream is the Java API for reading IDL types
from CDR marshal streams. These methods are used by the ORB to
unmarshal IDL types as well as to extract IDL types out of Anys.
The
_array versions of the methods can be directly
used to read sequences and arrays of IDL types.- Since:
- JDK1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorb()Returns the ORB that created this InputStream.intread()abstract Anyread_any()Reads an Any from this input stream.abstract booleanReads a boolean value from this input stream.abstract voidread_boolean_array(boolean[] value, int offset, int length) Reads an array of booleans from this input stream.abstract charReads a char value from this input stream.abstract 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.abstract doubleReads a double value from this input stream.abstract voidread_double_array(double[] value, int offset, int length) Reads an array of doubles from this input stream.Reads a BigDecimal number.abstract floatReads a float value from this input stream.abstract voidread_float_array(float[] value, int offset, int length) Reads an array of floats from this input stream.abstract intReads a CORBA long (that is, Java int) value from this input stream.abstract voidread_long_array(int[] value, int offset, int length) Reads an array of CORBA longs (that is, Java ints) from this input stream.abstract longReads a CORBA longlong (that is, Java long) value from this input stream.abstract voidread_longlong_array(long[] value, int offset, int length) Reads an array of CORBA longlongs (that is, Java longs) from this input stream.abstract ObjectReads a CORBA object from this input stream.read_Object(Class clz) Unmarshals an object and returns a CORBA Object, which is an instance of the class passed as its argument.abstract byteReads an octet (that is, a byte) value from this input stream.abstract voidread_octet_array(byte[] value, int offset, int length) Reads an array of octets (that is, bytes) from this input stream.Deprecated.Deprecated by CORBA 2.2.abstract shortReads a short value from this input stream.abstract voidread_short_array(short[] value, int offset, int length) Reads an array of shorts from this input stream.abstract StringReads a string value from this input stream.abstract TypeCodeReads aTypeCodefrom this input stream.abstract intReads an unsigned CORBA long (that is, Java int) value from this input stream.abstract voidread_ulong_array(int[] value, int offset, int length) Reads an array of unsigned CORBA longs (that is, Java ints) from this input stream.abstract longReads a CORBA unsigned longlong (that is, Java long) value from this input stream.abstract voidread_ulonglong_array(long[] value, int offset, int length) Reads an array of unsigned CORBA longlongs (that is, Java longs) from this input stream.abstract shortReads a unsigned short value from this input stream.abstract voidread_ushort_array(short[] value, int offset, int length) Reads an array of unsigned shorts from this input stream.abstract charReads a wide char value from this input stream.abstract voidread_wchar_array(char[] value, int offset, int length) Reads an array of wide chars from this input stream.abstract StringReads a wide string value from this input stream.Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
InputStream
public InputStream()
-
-
Method Details
-
read_boolean
public abstract boolean read_boolean()Reads a boolean value from this input stream.- Returns:
- the
booleanvalue read from this input stream
-
read_char
public abstract char read_char()Reads a char value from this input stream.- Returns:
- the
charvalue read from this input stream
-
read_wchar
public abstract char read_wchar()Reads a wide char value from this input stream.- Returns:
- the
charvalue read from this input stream
-
read_octet
public abstract byte read_octet()Reads an octet (that is, a byte) value from this input stream.- Returns:
- the
bytevalue read from this input stream
-
read_short
public abstract short read_short()Reads a short value from this input stream.- Returns:
- the
shortvalue read from this input stream
-
read_ushort
public abstract short read_ushort()Reads a unsigned short value from this input stream.- Returns:
- the
shortvalue read from this input stream
-
read_long
public abstract int read_long()Reads a CORBA long (that is, Java int) value from this input stream.- Returns:
- the
intvalue read from this input stream
-
read_ulong
public abstract int read_ulong()Reads an unsigned CORBA long (that is, Java int) value from this input stream.- Returns:
- the
intvalue read from this input stream
-
read_longlong
public abstract long read_longlong()Reads a CORBA longlong (that is, Java long) value from this input stream.- Returns:
- the
longvalue read from this input stream
-
read_ulonglong
public abstract long read_ulonglong()Reads a CORBA unsigned longlong (that is, Java long) value from this input stream.- Returns:
- the
longvalue read from this input stream
-
read_float
public abstract float read_float()Reads a float value from this input stream.- Returns:
- the
floatvalue read from this input stream
-
read_double
public abstract double read_double()Reads a double value from this input stream.- Returns:
- the
doublevalue read from this input stream
-
read_string
Reads a string value from this input stream.- Returns:
- the
Stringvalue read from this input stream
-
read_wstring
Reads a wide string value from this input stream.- Returns:
- the
Stringvalue read from this input stream
-
read_boolean_array
public abstract void read_boolean_array(boolean[] value, int offset, int length) Reads an array of booleans from this input stream.- Parameters:
value- returned array of booleans.offset- offset on the stream.length- length of buffer to read.
-
read_char_array
public abstract void read_char_array(char[] value, int offset, int length) Reads an array of chars from this input stream.- Parameters:
value- returned array of chars.offset- offset on the stream.length- length of buffer to read.
-
read_wchar_array
public abstract void read_wchar_array(char[] value, int offset, int length) Reads an array of wide chars from this input stream.- Parameters:
value- returned array of wide chars.offset- offset on the stream.length- length of buffer to read.
-
read_octet_array
public abstract void read_octet_array(byte[] value, int offset, int length) Reads an array of octets (that is, bytes) from this input stream.- Parameters:
value- returned array of octets (that is, bytes).offset- offset on the stream.length- length of buffer to read.
-
read_short_array
public abstract void read_short_array(short[] value, int offset, int length) Reads an array of shorts from this input stream.- Parameters:
value- returned array of shorts.offset- offset on the stream.length- length of buffer to read.
-
read_ushort_array
public abstract void read_ushort_array(short[] value, int offset, int length) Reads an array of unsigned shorts from this input stream.- Parameters:
value- returned array of shorts.offset- offset on the stream.length- length of buffer to read.
-
read_long_array
public abstract void read_long_array(int[] value, int offset, int length) Reads an array of CORBA longs (that is, Java ints) from this input stream.- 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 abstract 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.- 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 abstract void read_longlong_array(long[] value, int offset, int length) Reads an array of CORBA longlongs (that is, Java longs) from this input stream.- 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 abstract 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.- 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 abstract void read_float_array(float[] value, int offset, int length) Reads an array of floats from this input stream.- Parameters:
value- returned array of floats.offset- offset on the stream.length- length of buffer to read.
-
read_double_array
public abstract void read_double_array(double[] value, int offset, int length) Reads an array of doubles from this input stream.- Parameters:
value- returned array of doubles.offset- offset on the stream.length- length of buffer to read.
-
read_Object
Reads a CORBA object from this input stream.- Returns:
- the
Objectinstance read from this input stream.
-
read_TypeCode
Reads aTypeCodefrom this input stream.- Returns:
- the
TypeCodeinstance read from this input stream.
-
read_any
Reads an Any from this input stream.- Returns:
- the
Anyinstance read from this input stream.
-
read_Principal
Deprecated.Deprecated by CORBA 2.2.Returns principal for invocation.- Returns:
- Principal for invocation.
-
read
- Specified by:
readin classInputStream- Throws:
IOException- See Also:
-
read_fixed
Reads a BigDecimal number.- Returns:
- a java.math.BigDecimal number
-
read_Context
Reads a CORBA context from the stream.- Returns:
- a CORBA context
- See Also:
-
read_Object
Unmarshals 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.- 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
Returns the ORB that created this InputStream.- Returns:
- the
ORBobject that created this stream - See Also:
-