| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public abstract class InputStream extends 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.
Constructor Summary | |
---|---|
|
Method Summary | |
---|---|
ORB |
orb() Returns the ORB that created this InputStream. |
int |
read() Reads the next byte of data from the input stream. |
abstract Any |
read_any() Reads an Any from this input stream. |
abstract boolean |
Reads a boolean value from this input stream. |
abstract void |
read_boolean_array(boolean[] value, int offset, int length) Reads an array of booleans from this input stream. |
abstract char |
Reads a char value from this input stream. |
abstract void |
read_char_array(char[] value, int offset, int length) Reads an array of chars from this input stream. |
Context |
Reads a CORBA context from the stream. |
abstract double |
Reads a double value from this input stream. |
abstract void |
read_double_array(double[] value, int offset, int length) Reads an array of doubles from this input stream. |
BigDecimal |
Reads a BigDecimal number. |
abstract float |
Reads a float value from this input stream. |
abstract void |
read_float_array(float[] value, int offset, int length) Reads an array of floats from this input stream. |
abstract int |
Reads a CORBA long (that is, Java int) value from this input stream. |
abstract long |
Reads a CORBA longlong (that is, Java long) value from this input stream. |
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. |
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. |
abstract Object |
Reads a CORBA object from this input stream. |
Object |
read_Object(Class clz) Unmarshals an object and returns a CORBA Object, which is an instance of the class passed as its argument. |
abstract byte |
Reads an octet (that is, a byte) value from this input stream. |
abstract void |
read_octet_array(byte[] value, int offset, int length) Reads an array of octets (that is, bytes) from this input stream. |
Principal |
Returns principal for invocation. |
abstract short |
Reads a short value from this input stream. |
abstract void |
read_short_array(short[] value, int offset, int length) Reads an array of shorts from this input stream. |
abstract String |
Reads a string value from this input stream. |
abstract TypeCode |
Reads a TypeCode from this input stream.
|
abstract int |
Reads an unsigned CORBA long (that is, Java int) value from this input stream. |
abstract long |
Reads a CORBA unsigned longlong (that is, Java long) value from this input stream. |
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. |
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. |
abstract short |
Reads a unsigned short value from this input stream. |
abstract void |
read_ushort_array(short[] value, int offset, int length) Reads an array of unsigned shorts from this input stream. |
abstract char |
Reads a wide char value from this input stream. |
abstract void |
read_wchar_array(char[] value, int offset, int length) Reads an array of wide chars from this input stream. |
abstract String |
Reads a wide string value from this input stream. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStream()
Method Detail |
---|
public ORB orb()
ORB
object that created this streampublic int read() throws IOException
read
in class InputStream
IOException
public abstract Any read_any()
Any
instance read from this input stream.public abstract boolean read_boolean()
boolean
value read from this input streampublic abstract void read_boolean_array(boolean[] value, int offset, int length)
value
- returned array of booleans.offset
- offset on the stream.length
- length of buffer to read.public abstract char read_char()
char
value read from this input streampublic abstract void read_char_array(char[] value, int offset, int length)
value
- returned array of chars.offset
- offset on the stream.length
- length of buffer to read.public Context read_Context()
public abstract double read_double()
double
value read from this input streampublic abstract void read_double_array(double[] value, int offset, int length)
value
- returned array of doubles.offset
- offset on the stream.length
- length of buffer to read.public BigDecimal read_fixed()
public abstract float read_float()
float
value read from this input streampublic abstract void read_float_array(float[] value, int offset, int length)
value
- returned array of floats.offset
- offset on the stream.length
- length of buffer to read.public abstract int read_long()
int
value read from this input streampublic abstract long read_longlong()
long
value read from this input streampublic abstract void read_longlong_array(long[] value, int offset, int length)
value
- returned array of CORBA longs (that is, Java longs).offset
- offset on the stream.length
- length of buffer to read.public abstract void read_long_array(int[] value, int offset, int length)
value
- returned array of CORBA longs (that is, Java ints).offset
- offset on the stream.length
- length of buffer to read.public abstract Object read_Object()
Object
instance read from this input stream.public Object read_Object(Class clz)
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.public abstract byte read_octet()
byte
value read from this input streampublic abstract void read_octet_array(byte[] value, int offset, int length)
value
- returned array of octets (that is, bytes).offset
- offset on the stream.length
- length of buffer to read.public Principal read_Principal()
public abstract short read_short()
short
value read from this input streampublic abstract void read_short_array(short[] value, int offset, int length)
value
- returned array of shorts.offset
- offset on the stream.length
- length of buffer to read.public abstract String read_string()
String
value read from this input streampublic abstract TypeCode read_TypeCode()
TypeCode
from this input stream.
TypeCode
instance read from this input stream.public abstract int read_ulong()
int
value read from this input streampublic abstract long read_ulonglong()
long
value read from this input streampublic abstract void read_ulonglong_array(long[] value, int offset, int length)
value
- returned array of CORBA longs (that is, Java longs).offset
- offset on the stream.length
- length of buffer to read.public abstract void read_ulong_array(int[] value, int offset, int length)
value
- returned array of CORBA longs (that is, Java ints).offset
- offset on the stream.length
- length of buffer to read.public abstract short read_ushort()
short
value read from this input streampublic abstract void read_ushort_array(short[] value, int offset, int length)
value
- returned array of shorts.offset
- offset on the stream.length
- length of buffer to read.public abstract char read_wchar()
char
value read from this input streampublic abstract void read_wchar_array(char[] value, int offset, int length)
value
- returned array of wide chars.offset
- offset on the stream.length
- length of buffer to read.public abstract String read_wstring()
String
value read from this input stream
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |