|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.omg.CORBA.portable.InputStream
org.omg.CORBA_2_3.portable.InputStream
org.openorb.orb.io.AbstractInputStream
org.openorb.orb.iiop.CDRInputStream
public class CDRInputStream
This class implements CDR for IIOP
Constructor Summary | |
---|---|
CDRInputStream(org.omg.CORBA.ORB orb,
boolean bigEndian,
org.omg.GIOP.Version version,
BufferSource source)
Constructor used by lower layer. |
|
CDRInputStream(org.omg.CORBA.ORB orb,
boolean bigEndian,
org.omg.GIOP.Version version,
StorageBuffer buf)
Constructor used by codec. |
Method Summary | |
---|---|
void |
addIndirect(int offset,
java.lang.Object value)
This operation is used to add an indirection for an unmarshaled value type. |
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 |
protected org.apache.avalon.framework.logger.Logger |
getLogger()
|
protected java.util.Map |
getValueCache()
Provides access to the value cache for subclasses (e.g. |
java.lang.String |
getValueCodebase()
Return the codebase for the value. |
int |
index()
Get the current index in the buffer. |
protected org.omg.CORBA.portable.ValueFactory |
loadFactoryWithID(java.lang.String id,
java.lang.String url)
Load a OBV factory from its ID. |
void |
mark(int readlimit)
Set a mark at the current buffer position. |
org.omg.CORBA.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 |
org.omg.CORBA.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 |
org.omg.CORBA.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(org.omg.CORBA.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 |
org.omg.CORBA.Object |
read_Object()
Read an object |
org.omg.CORBA.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 |
org.omg.CORBA.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 |
org.omg.CORBA.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(org.omg.CORBA.portable.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. |
protected java.io.Serializable |
value_extended_unmarshal(int offset,
java.lang.Class clz,
java.lang.String repo_id,
java.lang.String codeBase,
org.omg.SendingContext.RunTime sendingCtxt)
This function should be overloaded by base types to allow marshaling of extended value types, RMI over IIOP for example. |
org.omg.GIOP.Version |
version()
Get the CDR protocol version |
Methods inherited from class org.openorb.orb.io.AbstractInputStream |
---|
available, cancel, force_skip, get_codebase, markSupported, next, read, read, read |
Methods inherited from class java.io.InputStream |
---|
close |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDRInputStream(org.omg.CORBA.ORB orb, boolean bigEndian, org.omg.GIOP.Version version, StorageBuffer buf)
public CDRInputStream(org.omg.CORBA.ORB orb, boolean bigEndian, org.omg.GIOP.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
protected org.apache.avalon.framework.logger.Logger getLogger()
public org.omg.CORBA.ORB orb()
orb
in interface ExtendedInputStream
orb
in class org.omg.CORBA.portable.InputStream
public void setCodesets(int tcsc, int tcsw)
public int index()
public void reset_index()
public org.omg.GIOP.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
count
- The number of bytes to skip.public void mark(int readlimit)
AbstractInputStream
mark
in class AbstractInputStream
readlimit
- NOT USEDpublic void reset() throws java.io.IOException
AbstractInputStream
reset
in class 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 org.omg.CORBA.portable.InputStream
public char read_char()
read_char
in class org.omg.CORBA.portable.InputStream
public char read_wchar()
read_wchar
in class org.omg.CORBA.portable.InputStream
public byte read_octet()
read_octet
in class org.omg.CORBA.portable.InputStream
public short read_short()
read_short
in class org.omg.CORBA.portable.InputStream
public short read_ushort()
read_ushort
in class org.omg.CORBA.portable.InputStream
public int read_long()
read_long
in class org.omg.CORBA.portable.InputStream
public int read_ulong()
read_ulong
in class org.omg.CORBA.portable.InputStream
public long read_longlong()
read_longlong
in class org.omg.CORBA.portable.InputStream
public long read_ulonglong()
read_ulonglong
in class org.omg.CORBA.portable.InputStream
public float read_float()
read_float
in class org.omg.CORBA.portable.InputStream
public double read_double()
read_double
in class org.omg.CORBA.portable.InputStream
public java.lang.String read_string()
read_string
in class org.omg.CORBA.portable.InputStream
public java.lang.String read_wstring()
read_wstring
in class org.omg.CORBA.portable.InputStream
public void read_boolean_array(boolean[] val, int off, int len)
read_boolean_array
in class org.omg.CORBA.portable.InputStream
public void read_char_array(char[] val, int voff, int len)
read_char_array
in class org.omg.CORBA.portable.InputStream
public void read_wchar_array(char[] val, int voff, int vlen)
read_wchar_array
in class org.omg.CORBA.portable.InputStream
public void read_octet_array(byte[] val, int off, int len)
read_octet_array
in class org.omg.CORBA.portable.InputStream
public void read_short_array(short[] val, int off, int len)
read_short_array
in class org.omg.CORBA.portable.InputStream
public void read_ushort_array(short[] val, int off, int len)
read_ushort_array
in class org.omg.CORBA.portable.InputStream
public void read_long_array(int[] val, int off, int len)
read_long_array
in class org.omg.CORBA.portable.InputStream
public void read_ulong_array(int[] val, int off, int len)
read_ulong_array
in class org.omg.CORBA.portable.InputStream
public void read_longlong_array(long[] val, int off, int len)
read_longlong_array
in class org.omg.CORBA.portable.InputStream
public void read_ulonglong_array(long[] val, int off, int len)
read_ulonglong_array
in class org.omg.CORBA.portable.InputStream
public void read_float_array(float[] val, int off, int len)
read_float_array
in class org.omg.CORBA.portable.InputStream
public void read_double_array(double[] val, int off, int len)
read_double_array
in class org.omg.CORBA.portable.InputStream
public org.omg.CORBA.TypeCode read_TypeCode()
read_TypeCode
in class org.omg.CORBA.portable.InputStream
public org.omg.CORBA.Any read_any()
read_any
in class org.omg.CORBA.portable.InputStream
public org.omg.CORBA.Principal read_Principal()
read_Principal
in class org.omg.CORBA.portable.InputStream
public org.omg.CORBA.Object read_Object()
read_Object
in class org.omg.CORBA.portable.InputStream
public org.omg.CORBA.Object read_Object(java.lang.Class clz)
read_Object
in class org.omg.CORBA.portable.InputStream
public org.omg.CORBA.Context read_Context()
read_Context
in class org.omg.CORBA.portable.InputStream
public java.math.BigDecimal read_fixed()
read_fixed
in class org.omg.CORBA.portable.InputStream
public java.math.BigDecimal read_fixed(org.omg.CORBA.TypeCode type)
read_fixed
in interface ExtendedInputStream
public java.math.BigDecimal read_fixed(short digits, short scale)
read_fixed
in interface ExtendedInputStream
read_fixed
in class org.omg.CORBA.portable.InputStream
public java.io.Serializable read_value()
read_value
in class org.omg.CORBA_2_3.portable.InputStream
public java.io.Serializable read_value(java.lang.String rep_id)
read_value
in class org.omg.CORBA_2_3.portable.InputStream
public java.io.Serializable read_value(java.lang.Class clz)
read_value
in class org.omg.CORBA_2_3.portable.InputStream
public java.io.Serializable read_value(org.omg.CORBA.portable.BoxedValueHelper boxhelp)
read_value
in class org.omg.CORBA_2_3.portable.InputStream
public java.lang.String[] read_typeids(int tag)
public java.io.Serializable read_value(java.io.Serializable value)
read_value
in class org.omg.CORBA_2_3.portable.InputStream
protected java.io.Serializable value_extended_unmarshal(int offset, java.lang.Class clz, java.lang.String repo_id, java.lang.String codeBase, org.omg.SendingContext.RunTime sendingCtxt)
public java.lang.Object read_abstract_interface()
read_abstract_interface
in class org.omg.CORBA_2_3.portable.InputStream
public java.lang.Object read_abstract_interface(java.lang.Class clz)
read_abstract_interface
in class org.omg.CORBA_2_3.portable.InputStream
clz
- the stub class for an object
public void addIndirect(int offset, java.lang.Object value)
public java.lang.String getValueCodebase()
protected org.omg.CORBA.portable.ValueFactory loadFactoryWithID(java.lang.String id, java.lang.String url)
protected java.util.Map getValueCache()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |