|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--org.omg.CORBA.portable.InputStream | +--org.omg.CORBA_2_3.portable.InputStream | +--org.openorb.io.AbstractInputStream | +--org.openorb.iiop.CDRInputStream
This class implements CDR for IIOP
Constructor Summary | |
CDRInputStream(ORB orb,
boolean bigEndian,
Version version,
BufferSource source)
Constructor used by lower layer. |
|
CDRInputStream(ORB orb,
boolean bigEndian,
Version version,
StorageBuffer buf)
Constructor used by codec. |
Method Summary | |
void |
alignment(int size)
Adjust alignment. |
void |
begin_encapsulation()
Encapsulation begin. |
boolean |
bigEndian()
Get the endian mode |
void |
bigEndian(boolean bigEndian)
Set the endian mode |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
|
void |
end_encapsulation()
skip to end of current encapsulation |
int |
index()
Get the current index in the buffer. |
void |
mark(int readlimit)
Set a mark at the current buffer position. |
ORB |
orb()
Get the orb associated with the stream. |
java.lang.Object |
read_abstract_interface()
Read an abstract interface |
java.lang.Object |
read_abstract_interface(java.lang.Class clz)
Read an abstract interface |
Any |
read_any()
Read an any |
void |
read_boolean_array(boolean[] val,
int off,
int len)
Read an IDL boolean array |
boolean |
read_boolean()
Return an IDL boolean |
void |
read_char_array(char[] val,
int voff,
int len)
Read an IDL char array from the stream |
char |
read_char()
Return an IDL char |
Context |
read_Context()
Read a context |
void |
read_double_array(double[] val,
int off,
int len)
Read a double array |
double |
read_double()
Return an IDL double |
java.math.BigDecimal |
read_fixed()
Deprecated. Loses scale and precision, see http://www.omg.org/issues/issue3431.txt |
java.math.BigDecimal |
read_fixed(short digits,
short scale)
read a fixed. |
java.math.BigDecimal |
read_fixed(TypeCode type)
read a fixed. |
void |
read_float_array(float[] val,
int off,
int len)
Read a float array |
float |
read_float()
Return an IDL float |
void |
read_long_array(int[] val,
int off,
int len)
Read a long array |
int |
read_long()
Return an IDL long |
void |
read_longlong_array(long[] val,
int off,
int len)
Read a long long array |
long |
read_longlong()
Return an IDL long long |
Object |
read_Object()
Read an object |
Object |
read_Object(java.lang.Class clz)
Read an Object |
void |
read_octet_array(byte[] val,
int off,
int len)
Read an octet array |
byte |
read_octet()
Return an IDL octet |
Principal |
read_Principal()
Read a principal |
void |
read_short_array(short[] val,
int off,
int len)
Read a short array |
short |
read_short()
Return an IDL short |
java.lang.String |
read_string()
Return an IDL string |
TypeCode |
read_TypeCode()
Read a typecode |
java.lang.String[] |
read_typeids(int tag)
|
void |
read_ulong_array(int[] val,
int off,
int len)
Read an unsigned long array |
int |
read_ulong()
Return an IDL unsigned long |
void |
read_ulonglong_array(long[] val,
int off,
int len)
Read an unsigned long long array |
long |
read_ulonglong()
Return an IDL unsigned long long |
void |
read_ushort_array(short[] val,
int off,
int len)
Read an unsigned short array |
short |
read_ushort()
Return an IDL unsigned short |
java.io.Serializable |
read_value()
Read a value from a CDR stream |
java.io.Serializable |
read_value(BoxedValueHelper boxhelp)
Read a value from a CDR stream |
java.io.Serializable |
read_value(java.lang.Class clz)
Read a value from a CDR stream |
java.io.Serializable |
read_value(java.io.Serializable value)
Read value state from the stream. |
java.io.Serializable |
read_value(java.lang.String rep_id)
Read a value from a CDR stream |
void |
read_wchar_array(char[] val,
int voff,
int vlen)
Read a wchar array |
char |
read_wchar()
Read a wchar from the input stream. |
java.lang.String |
read_wstring()
Return an IDL wstring |
void |
reset_index()
Reset the index to 0. |
void |
reset()
Reset the current position to the latest mark. |
void |
setCodesets(int tcsc,
int tcsw)
Set the translation codesets. |
long |
skip(long count)
Skip over bytes. |
Version |
version()
Get the CDR protocol version |
Methods inherited from class org.openorb.io.AbstractInputStream |
available, get_codebase, markSupported, read, read, read |
Methods inherited from class java.io.InputStream |
close |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CDRInputStream(ORB orb, boolean bigEndian, Version version, StorageBuffer buf)
public CDRInputStream(ORB orb, boolean bigEndian, Version version, BufferSource source)
Method Detail |
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
public ORB orb()
orb
in class InputStream
public void setCodesets(int tcsc, int tcsw)
public int index()
public void reset_index()
public Version version()
public boolean bigEndian()
public void bigEndian(boolean bigEndian)
public void alignment(int size)
public void begin_encapsulation()
public void end_encapsulation()
public long skip(long count)
skip
in class AbstractInputStream
org.openorb.io.AbstractInputStream
count
- The number of bytes to skip.public void mark(int readlimit)
AbstractInputStream
mark
in class AbstractInputStream
org.openorb.io.AbstractInputStream
readlimit
- NOT USEDpublic void reset() throws java.io.IOException
AbstractInputStream
reset
in class AbstractInputStream
org.openorb.io.AbstractInputStream
java.io.IOException
- An IOException is thrown when
there is no mark where the buffer can be reset to.public boolean read_boolean()
read_boolean
in class InputStream
public char read_char()
read_char
in class InputStream
public char read_wchar()
read_wchar
in class InputStream
public byte read_octet()
read_octet
in class InputStream
public short read_short()
read_short
in class InputStream
public short read_ushort()
read_ushort
in class InputStream
public int read_long()
read_long
in class InputStream
public int read_ulong()
read_ulong
in class InputStream
public long read_longlong()
read_longlong
in class InputStream
public long read_ulonglong()
read_ulonglong
in class InputStream
public float read_float()
read_float
in class InputStream
public double read_double()
read_double
in class InputStream
public java.lang.String read_string()
read_string
in class InputStream
public java.lang.String read_wstring()
read_wstring
in class InputStream
public void read_boolean_array(boolean[] val, int off, int len)
read_boolean_array
in class InputStream
public void read_char_array(char[] val, int voff, int len)
read_char_array
in class InputStream
public void read_wchar_array(char[] val, int voff, int vlen)
read_wchar_array
in class InputStream
public void read_octet_array(byte[] val, int off, int len)
read_octet_array
in class InputStream
public void read_short_array(short[] val, int off, int len)
read_short_array
in class InputStream
public void read_ushort_array(short[] val, int off, int len)
read_ushort_array
in class InputStream
public void read_long_array(int[] val, int off, int len)
read_long_array
in class InputStream
public void read_ulong_array(int[] val, int off, int len)
read_ulong_array
in class InputStream
public void read_longlong_array(long[] val, int off, int len)
read_longlong_array
in class InputStream
public void read_ulonglong_array(long[] val, int off, int len)
read_ulonglong_array
in class InputStream
public void read_float_array(float[] val, int off, int len)
read_float_array
in class InputStream
public void read_double_array(double[] val, int off, int len)
read_double_array
in class InputStream
public TypeCode read_TypeCode()
read_TypeCode
in class InputStream
public Any read_any()
read_any
in class InputStream
public Principal read_Principal()
read_Principal
in class InputStream
public Object read_Object()
read_Object
in class InputStream
public Object read_Object(java.lang.Class clz)
read_Object
in class InputStream
public Context read_Context()
read_Context
in class InputStream
public java.math.BigDecimal read_fixed()
read_fixed
in class InputStream
public java.math.BigDecimal read_fixed(TypeCode type)
public java.math.BigDecimal read_fixed(short digits, short scale)
read_fixed
in class InputStream
public java.io.Serializable read_value()
read_value
in class InputStream
public java.io.Serializable read_value(java.lang.String rep_id)
read_value
in class InputStream
public java.io.Serializable read_value(java.lang.Class clz)
read_value
in class InputStream
public java.io.Serializable read_value(BoxedValueHelper boxhelp)
read_value
in class InputStream
public java.lang.String[] read_typeids(int tag)
public java.io.Serializable read_value(java.io.Serializable value)
read_value
in class InputStream
public java.lang.Object read_abstract_interface()
read_abstract_interface
in class InputStream
public java.lang.Object read_abstract_interface(java.lang.Class clz)
read_abstract_interface
in class InputStream
clz
- the stub class for an object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |