|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ipdr.xdr.XDRUnMarshaller
public class XDRUnMarshaller
XDRUnMarshaller is the simplest marshalling mechanism using basic Java InputStream objects. No intermediate buffering is used, this allows appropriate buffering to be determined by the InputStream provider (e.g. the stream could be a BufferedInputStream).
Field Summary | |
---|---|
protected static byte |
FALSE
Byte containing FALSE value |
protected java.lang.String |
ipdrVersion_
String containing IPDR Version |
protected java.io.InputStream |
sourceStream_
To store the Source stream. |
protected static byte |
TRUE
Byte containing TRUE value |
Constructor Summary | |
---|---|
XDRUnMarshaller(java.io.InputStream is)
Constructor for the XDRUnMarshaller object. |
Method Summary | |
---|---|
void |
close()
Method to close the inpur stream. |
java.lang.String |
getVersion()
Method to get the IPDR Version. |
static void |
main(java.lang.String[] args)
Simple demonstration entry point. |
boolean |
read_boolean()
Method to read a 'boolean' from the input stream. |
byte |
read_byte()
Method to read a 'byte' from the input stream. |
double |
read_double()
Method to read a 'double' from the input stream. |
float |
read_float()
Method to read a 'float' from the input stream. |
int |
read_long()
Method to read an 'int' from the input stream. |
long |
read_longlong()
Method to read a 'long' from the input stream. |
void |
read_octet_array(byte[] array,
int off,
int len)
Method to read a 'octet array' from the input stream. |
short |
read_short()
Method to read a 'short' from the input stream. |
long |
read_u_long()
Method to read an 'unsigned int' from the input stream. |
java.lang.String |
read_wstring()
Method to read a 'string' from the input stream. |
int |
read()
Method to read a 'byte' from the input stream. |
void |
setVersion(java.lang.String ver)
Method to set the IPDR Version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.InputStream sourceStream_
protected static final byte TRUE
protected static final byte FALSE
protected java.lang.String ipdrVersion_
Constructor Detail |
---|
public XDRUnMarshaller(java.io.InputStream is)
is
- Input StreamMethod Detail |
---|
public void setVersion(java.lang.String ver)
ver
- IPDR Version.public java.lang.String getVersion()
public int read() throws java.io.IOException
java.io.IOException
- when an exception occurs while readingpublic void close() throws java.io.IOException
java.io.IOException
- when an exception occurs while closingpublic int read_long() throws java.io.IOException
java.io.IOException
- when an exception occurs while readingpublic long read_u_long() throws java.io.IOException
java.io.IOException
- when an exception occurs while readingpublic long read_longlong() throws java.io.IOException
java.io.IOException
- when an exception occurs while readingpublic float read_float() throws java.io.IOException
java.io.IOException
- when an exception occurs while readingpublic double read_double() throws java.io.IOException
java.io.IOException
- when an exception occurs while readingpublic java.lang.String read_wstring() throws java.io.IOException, IPDRException
java.io.IOException
- when an exception occurs while reading
IPDRException
- a IPDR functionality related exception occurspublic void read_octet_array(byte[] array, int off, int len) throws java.io.IOException
array
- the buffer into which the data is readoff
- the start offset in array at which the data is writtenlen
- the maximum number of bytes to read
java.io.IOException
- when an exception occurs while readingpublic byte read_byte() throws java.io.IOException
java.io.IOException
public boolean read_boolean() throws java.io.IOException
java.io.IOException
public short read_short() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |