org.jacorb.orb
public class CDRInputStream extends InputStream
| Field Summary | |
|---|---|
| protected byte[] | buffer indices into the actual buffer |
| protected int | giop_minor |
| protected int | index |
| boolean | littleEndian |
| protected int | pos |
| Constructor Summary | |
|---|---|
| CDRInputStream(ORB orb, byte[] buf) | |
| CDRInputStream(ORB orb, byte[] buf, boolean littleEndian) | |
| CDRInputStream(byte[] buffer, boolean littleEndian) | |
| Method Summary | |
|---|---|
| int | available() |
| void | close() |
| void | closeEncapsulation()
close a CDR encapsulation and
restore index and byte order information |
| byte[] | getBufferCopy() |
| int | getGIOPMinor() |
| int | get_pos() |
| void | mark(int readLimit) |
| boolean | markSupported() |
| void | openEncapsulatedArray() |
| int | openEncapsulation()
open a CDR encapsulation and
restore index and byte order information |
| ORB | orb() |
| int | read()
Reads the next byte of data from the input stream. |
| int | read(byte[] b)
Has the effect of read(b, 0, b.length); |
| int | read(byte[] b, int off, int len)
Performs as described by java.io.InputStream.read(byte[], int, int),
but never blocks. |
| Object | read_abstract_interface()
Reads an abstract interface from this stream. |
| Object | read_abstract_interface(Class clazz)
Reads an abstract interface from this stream. |
| Any | read_any() |
| boolean | read_boolean() |
| void | read_boolean_array(boolean[] value, int offset, int length) arrays |
| char | read_char()read_char reads a character from the stream.
|
| void | read_char_array(char[] value, int offset, int length)read_char_array reads an character array from the stream.
|
| double | read_double() |
| void | read_double_array(double[] value, int offset, int length) |
| BigDecimal | read_fixed() |
| BigDecimal | read_fixed(short digits, short scale) |
| float | read_float() |
| void | read_float_array(float[] value, int offset, int length) |
| int | read_long() |
| long | read_longlong() |
| void | read_longlong_array(long[] value, int offset, int length) |
| void | read_long_array(int[] value, int offset, int length) |
| byte | read_octet() |
| void | read_octet_array(byte[] value, int offset, int length) |
| Object | read_Object() |
| Object | read_Object(Class clazz) |
| Principal | read_Principal() |
| short | read_short()
Read methods for big-endian as well as little endian data input
contributed by Mark Allerton |
| void | read_short_array(short[] value, int offset, int length) |
| String | read_string()read_string reads a string from the buffer. |
| TypeCode | read_TypeCode() |
| int | read_ulong() |
| long | read_ulonglong() |
| void | read_ulonglong_array(long[] value, int offset, int length) |
| void | read_ulong_array(int[] value, int offset, int length) |
| short | read_ushort() |
| void | read_ushort_array(short[] value, int offset, int length) |
| Serializable | read_value() |
| Serializable | read_value(String rep_id)
Overrides read_value(java.io.Serializable value) in
org.omg.CORBA_2_3.portable.InputStream |
| Serializable | read_value(Serializable value)
Unmarshals a valuetype instance from this stream. |
| Serializable | read_value(Class clz)
Overrides read_value(clz) in
org.omg.CORBA_2_3.portable.InputStream |
| Serializable | read_value(BoxedValueHelper factory)
Overrides read_value(factory) in
org.omg.CORBA_2_3.portable.InputStream |
| char | read_wchar() |
| void | read_wchar_array(char[] value, int offset, int length) |
| String | read_wstring() |
| void | register_value(Serializable value)
Stores `value' into this stream's valueMap. |
| void | reset() |
| void | setCodeSet(int codeSet, int codeSetWide) |
| void | setGIOPMinor(int giop_minor) |
| void | setLittleEndian(boolean b) |
| protected void | skip(int distance) |
| void | updateMutatorConnection(GIOPConnection connection)updateMutatorConnection is an accessor that updates the
ior mutator.
|
Returns: the number of bytes that can be read (or skipped over) from this input stream. This is not necessarily the number of 'valid' bytes.
int in the range 0 to
255. If no byte is available because the end of the stream
has been reached, the value -1 is returned.Returns: the next byte of data, or -1 if the end of the
stream is reached.
Throws: java.io.IOException if stream is closed.
See Also: (byte[], int, int)
java.io.InputStream.read(byte[], int, int),
but never blocks.read_char reads a character from the stream.
Returns: a char value
read_char_array reads an character array from the stream.
Parameters: value a char[], the result array. offset an int, an offset into value length an int, the length of the array to read
read_string reads a string from the buffer. It is optimized
for whether it is reading a blank string, and whether codeset translation
is active.
Returns: a String value, possibly blank, never null.
updateMutatorConnection is an accessor that updates the
ior mutator.
By making callers pass in a GIOPConnection not a transport this allows
callers to not have to call getTransport which would require a synchronized
lock. Therefore if the mutator has not been enabled this is effectively a
NOP.
Parameters: connection an org.omg.ETF.Connection value