| java.lang.Object java.io.InputStream org.omg.CORBA.portable.InputStream org.omg.CORBA_2_3.portable.InputStream org.jacorb.orb.CDRInputStream
All known Subclasses: org.jacorb.orb.giop.MessageInputStream,
CDRInputStream | public class CDRInputStream extends org.omg.CORBA_2_3.portable.InputStream (Code) | | Read CDR encoded data
author: Gerald Brose, FU Berlin author: $Id: CDRInputStream.java,v 1.114 2007/01/08 12:18:45 alphonse.bendt Exp $ |
Method Summary | |
public int | available() the number of bytes that can be read (or skipped over) from thisinput stream. | public void | close() | final public void | closeEncapsulation() | public byte[] | getBufferCopy() | public int | getGIOPMinor() | public int | get_pos() | public void | mark(int readLimit) | public boolean | markSupported() | final public void | openEncapsulatedArray() | final public int | openEncapsulation() | public org.omg.CORBA.ORB | orb() | public int | read() Reads the next byte of data from the input stream. | public int | read(byte[] b) | public int | read(byte[] b, int off, int len) Performs as described by java.io.InputStream.read(byte[], int, int) ,
but never blocks. | final public org.omg.CORBA.Object | read_Object() | public org.omg.CORBA.Object | read_Object(java.lang.Class clazz) | final public org.omg.CORBA.Principal | read_Principal() | final public org.omg.CORBA.TypeCode | read_TypeCode() | public java.lang.Object | read_abstract_interface() Reads an abstract interface from this stream. | public java.lang.Object | read_abstract_interface(java.lang.Class clazz) Reads an abstract interface from this stream. | final public org.omg.CORBA.Any | read_any() | final public boolean | read_boolean() | final public void | read_boolean_array(boolean[] value, int offset, int length) | final public char | read_char() read_char reads a character from the stream. | final public void | read_char_array(char[] value, int offset, int length) read_char_array reads an character array from the stream. | final public double | read_double() | final public void | read_double_array(double[] value, int offset, int length) | final public BigDecimal | read_fixed() | final public java.math.BigDecimal | read_fixed(short digits, short scale) | final public float | read_float() | final public void | read_float_array(float[] value, int offset, int length) | final public int | read_long() | final public void | read_long_array(int[] value, int offset, int length) | final public long | read_longlong() | final public void | read_longlong_array(long[] value, int offset, int length) | final public byte | read_octet() | final public void | read_octet_array(byte[] value, int offset, int length) | final public short | read_short() | final public void | read_short_array(short[] value, int offset, int length) | final public String | read_string() read_string reads a string from the buffer. | final public int | read_ulong() | final public void | read_ulong_array(int[] value, int offset, int length) | final public long | read_ulonglong() | final public void | read_ulonglong_array(long[] value, int offset, int length) | final public short | read_ushort() | final public void | read_ushort_array(short[] value, int offset, int length) | final void | read_value(org.omg.CORBA.TypeCode typeCode, org.omg.CORBA.portable.OutputStream out) Reads an instance of the type described by type code tc
from this CDRInputStream, and remarshals it to the given OutputStream,
out . | public java.io.Serializable | read_value() | public java.io.Serializable | read_value(String rep_id) | public java.io.Serializable | read_value(java.io.Serializable value) Unmarshals a valuetype instance from this stream. | public java.io.Serializable | read_value(java.lang.Class clz) | public java.io.Serializable | read_value(org.omg.CORBA.portable.BoxedValueHelper factory) | final public char | read_wchar() | final public void | read_wchar_array(char[] value, int offset, int length) | final public String | read_wstring() | public void | register_value(java.io.Serializable value) Stores `value' into this stream's valueMap. | public void | reset() | public void | setCodeSet(int codeSet, int codeSetWide) | public void | setGIOPMinor(int giop_minor) | final public void | setLittleEndian(boolean b) | final protected void | skip(int distance) | public void | updateMutatorConnection(GIOPConnection connection) 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. |
buffer | protected byte[] buffer(Code) | | indices into the actual buffer
|
giop_minor | protected int giop_minor(Code) | | |
index | protected int index(Code) | | |
littleEndian | public boolean littleEndian(Code) | | |
CDRInputStream | public CDRInputStream(byte[] buffer, boolean littleEndian)(Code) | | |
available | public int available()(Code) | | the number of bytes that can be read (or skipped over) from thisinput stream. This is not necessarily the number of 'valid' bytes. |
close | public void close()(Code) | | |
closeEncapsulation | final public void closeEncapsulation()(Code) | | close a CDR encapsulation and
restore index and byte order information
|
getBufferCopy | public byte[] getBufferCopy()(Code) | | |
getGIOPMinor | public int getGIOPMinor()(Code) | | |
get_pos | public int get_pos()(Code) | | |
mark | public void mark(int readLimit)(Code) | | |
markSupported | public boolean markSupported()(Code) | | |
openEncapsulatedArray | final public void openEncapsulatedArray()(Code) | | |
openEncapsulation | final public int openEncapsulation()(Code) | | open a CDR encapsulation and
restore index and byte order information
|
read | public int read() throws java.io.IOException(Code) | | Reads the next byte of data from the input stream. The value byte is
returned as an 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.
the next byte of data, or -1 if the end of thestream is reached. throws: java.io.IOException - if stream is closed. |
read | public int read(byte[] b, int off, int len) throws java.io.IOException(Code) | | Performs as described by java.io.InputStream.read(byte[], int, int) ,
but never blocks.
|
read_abstract_interface | public java.lang.Object read_abstract_interface()(Code) | | Reads an abstract interface from this stream. The abstract interface
Reads an abstract interface from this stream. The abstract interface
appears as a union with a boolean discriminator, which is true if the
union contains a CORBA object reference, or false if the union contains
a value.
|
read_abstract_interface | public java.lang.Object read_abstract_interface(java.lang.Class clazz)(Code) | | Reads an abstract interface from this stream. The abstract interface
appears as a union with a boolean discriminator, which is true if the
union contains a CORBA object reference, or false if the union contains
a value.
|
read_boolean | final public boolean read_boolean()(Code) | | |
read_boolean_array | final public void read_boolean_array(boolean[] value, int offset, int length)(Code) | | arrays
|
read_char | final public char read_char()(Code) | | read_char reads a character from the stream.
a char value |
read_char_array | final public void read_char_array(char[] value, int offset, int length)(Code) | | read_char_array reads an character array from the stream.
Parameters: value - a char[] , the result array. Parameters: offset - an int , an offset into value Parameters: length - an int , the length of the array to read |
read_double | final public double read_double()(Code) | | |
read_double_array | final public void read_double_array(double[] value, int offset, int length)(Code) | | |
read_float | final public float read_float()(Code) | | |
read_float_array | final public void read_float_array(float[] value, int offset, int length)(Code) | | |
read_long | final public int read_long()(Code) | | |
read_long_array | final public void read_long_array(int[] value, int offset, int length)(Code) | | |
read_longlong | final public long read_longlong()(Code) | | |
read_longlong_array | final public void read_longlong_array(long[] value, int offset, int length)(Code) | | |
read_octet | final public byte read_octet()(Code) | | |
read_octet_array | final public void read_octet_array(byte[] value, int offset, int length)(Code) | | |
read_short | final public short read_short()(Code) | | Read methods for big-endian as well as little endian data input
contributed by Mark Allerton
|
read_short_array | final public void read_short_array(short[] value, int offset, int length)(Code) | | |
read_string | final public String read_string()(Code) | | 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.
a String value, possibly blank, never null. |
read_ulong | final public int read_ulong()(Code) | | |
read_ulong_array | final public void read_ulong_array(int[] value, int offset, int length)(Code) | | |
read_ulonglong | final public long read_ulonglong()(Code) | | |
read_ulonglong_array | final public void read_ulonglong_array(long[] value, int offset, int length)(Code) | | |
read_ushort | final public short read_ushort()(Code) | | |
read_ushort_array | final public void read_ushort_array(short[] value, int offset, int length)(Code) | | |
read_value | public java.io.Serializable read_value(String rep_id)(Code) | | Overrides read_value(java.io.Serializable value) in
org.omg.CORBA_2_3.portable.InputStream
|
read_value | public java.io.Serializable read_value(java.io.Serializable value)(Code) | | Unmarshals a valuetype instance from this stream. The value returned
is the same value passed in, with all the data unmarshaled
(IDL-to-Java Mapping 1.2, August 2002, 1.13.1, p. 1-39). The specified
value is an uninitialized value that is added to the ORB's indirection
table before unmarshaling (1.21.4.1, p. 1-117).
This method is intended to be called from custom valuetype factories.
Unlike the other read_value() methods in this class, this method does
not expect a GIOP value tag nor a repository id in the stream.
Overrides read_value(value) in
org.omg.CORBA_2_3.portable.InputStream
|
read_wchar | final public char read_wchar()(Code) | | |
read_wchar_array | final public void read_wchar_array(char[] value, int offset, int length)(Code) | | |
register_value | public void register_value(java.io.Serializable value)(Code) | | Stores `value' into this stream's valueMap. This is provided
as a callback for value factories, so that a value factory can
store an object into the map before actually reading its state.
This is essential for unmarshalling recursive values.
|
setCodeSet | public void setCodeSet(int codeSet, int codeSetWide)(Code) | | |
setGIOPMinor | public void setGIOPMinor(int giop_minor)(Code) | | |
setLittleEndian | final public void setLittleEndian(boolean b)(Code) | | |
skip | final protected void skip(int distance)(Code) | | |
updateMutatorConnection | public void updateMutatorConnection(GIOPConnection connection)(Code) | | 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 |
Methods inherited from org.omg.CORBA.portable.InputStream | public org.omg.CORBA.ORB orb()(Code)(Java Doc) public int read() throws java.io.IOException(Code)(Java Doc) public org.omg.CORBA.Context read_Context()(Code)(Java Doc) abstract public org.omg.CORBA.Object read_Object()(Code)(Java Doc) public org.omg.CORBA.Object read_Object(java.lang.Class clz)(Code)(Java Doc) public org.omg.CORBA.Principal read_Principal()(Code)(Java Doc) abstract public org.omg.CORBA.TypeCode read_TypeCode()(Code)(Java Doc) abstract public org.omg.CORBA.Any read_any()(Code)(Java Doc) abstract public boolean read_boolean()(Code)(Java Doc) abstract public void read_boolean_array(boolean[] value, int offset, int length)(Code)(Java Doc) abstract public char read_char()(Code)(Java Doc) abstract public void read_char_array(char[] value, int offset, int length)(Code)(Java Doc) abstract public double read_double()(Code)(Java Doc) abstract public void read_double_array(double[] value, int offset, int length)(Code)(Java Doc) public java.math.BigDecimal read_fixed()(Code)(Java Doc) public java.math.BigDecimal read_fixed(short digits, short scale)(Code)(Java Doc) abstract public float read_float()(Code)(Java Doc) abstract public void read_float_array(float[] value, int offset, int length)(Code)(Java Doc) abstract public int read_long()(Code)(Java Doc) abstract public void read_long_array(int[] value, int offset, int length)(Code)(Java Doc) abstract public long read_longlong()(Code)(Java Doc) abstract public void read_longlong_array(long[] value, int offset, int length)(Code)(Java Doc) abstract public byte read_octet()(Code)(Java Doc) abstract public void read_octet_array(byte[] value, int offset, int length)(Code)(Java Doc) abstract public short read_short()(Code)(Java Doc) abstract public void read_short_array(short[] value, int offset, int length)(Code)(Java Doc) abstract public String read_string()(Code)(Java Doc) abstract public int read_ulong()(Code)(Java Doc) abstract public void read_ulong_array(int[] value, int offset, int length)(Code)(Java Doc) abstract public long read_ulonglong()(Code)(Java Doc) abstract public void read_ulonglong_array(long[] value, int offset, int length)(Code)(Java Doc) abstract public short read_ushort()(Code)(Java Doc) abstract public void read_ushort_array(short[] value, int offset, int length)(Code)(Java Doc) abstract public char read_wchar()(Code)(Java Doc) abstract public void read_wchar_array(char[] value, int offset, int length)(Code)(Java Doc) abstract public String read_wstring()(Code)(Java Doc)
|
|
|