|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--edu.vt.marian.uip.xdr
class name: xdr class description: This class will deal with XDR stuff uses the services of class(es): none designer: Junni Fan (jfan@vt.edu) implementators: Junni Fan(jfan@vt.edu) finished time: 11/29/98 known bugs: JDK version: 1.1.6 side effects:
| Field Summary | |
static int |
ERROR_IO
|
static int |
INVALID_PARAMETER
|
static int |
OK
|
| Constructor Summary | |
xdr(edu.vt.marian.common.Debug debug)
method description: xdr constructor uses the services of class(es): none input parameter(s): debug -- only for debugging output parameter(s): none return value: none synchronization consideration: none |
|
| Method Summary | |
int |
bool_to_stream_in_xdr(boolean b,
java.io.BufferedOutputStream bos)
method description: write a boolean to the bos uses the services of class(es): xdr::integer_to_stream_in_xdr input parameter(s): b -- the boolean to be written out bos -- output stream output parameter(s): none return value: OK -- the method is executed successfully INVALID_PARAMETER -- wrong parameter ERROR_IO -- error in io operation synchronization consideration: none |
int |
get_bool_size()
method description: get byte number of a boolean in xdr format uses the services of class(es): xdr::get_integer_size input parameter(s): none output parameter(s): none return value: byte number of a boolean in xdr format synchronization consideration: none |
int |
get_integer_size()
method description: get byte number of an integer in xdr format uses the services of class(es): none input parameter(s): none output parameter(s): none return value: byte number of an integer in xdr synchronization consideration: none |
int |
get_string_size(java.lang.String s)
method description: get byte number of a string in xdr format uses the services of class(es): xdr::get_string_size input parameter(s): none output parameter(s): none return value: positive number -- byte number of a string in xdr format INVALID_PARAMETER -- wrong parameter synchronization consideration: none |
int |
integer_to_stream_in_xdr(int i,
java.io.BufferedOutputStream bos)
method description: write an integer to the bos uses the services of class(es): none input parameter(s): debug -- only for debugging output parameter(s): none return value: OK -- the method is executed successfully INVALID_PARAMETER -- wrong parameter ERROR_IO -- error in io operation synchronization consideration: none |
boolean |
read_bool_from_stream(java.io.BufferedInputStream bis)
method description: read a boolean from the bis uses the services of class(es): xdr::read_integer_from_stream input parameter(s): bis -- input stream output parameter(s): none return value: desired boolean -- the boolean to be read, return false if error occured synchronization consideration: none |
int |
read_integer_from_stream(java.io.BufferedInputStream bis)
method description: read an integer from the bis uses the services of class(es): none input parameter(s): bis -- input stream output parameter(s): none return value: desired integer -- the integer to be read INVALID_PARAMETER -- wrong parameter ERROR_IO -- error in io operation synchronization consideration: none |
java.lang.String |
read_string_from_stream(java.io.BufferedInputStream bis)
method description: read a string from the bis uses the services of class(es): xdr::read_integer_from_stream input parameter(s): bis -- input stream output parameter(s): none return value: desired string null -- if error occurred synchronization consideration: none |
int |
string_to_stream_in_xdr(java.lang.String s,
java.io.BufferedOutputStream bos)
method description: write a string to the bos uses the services of class(es): xdr::integer_to_stream_in_xdr input parameter(s): s -- the string to be written out bos -- output stream output parameter(s): none return value: OK -- the method is executed successfully INVALID_PARAMETER -- wrong parameter ERROR_IO -- error in io operation synchronization consideration: none |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int OK
public static final int INVALID_PARAMETER
public static final int ERROR_IO
| Constructor Detail |
public xdr(edu.vt.marian.common.Debug debug)
| Method Detail |
public int integer_to_stream_in_xdr(int i,
java.io.BufferedOutputStream bos)
public int bool_to_stream_in_xdr(boolean b,
java.io.BufferedOutputStream bos)
public int string_to_stream_in_xdr(java.lang.String s,
java.io.BufferedOutputStream bos)
public int read_integer_from_stream(java.io.BufferedInputStream bis)
throws java.lang.Exception
public boolean read_bool_from_stream(java.io.BufferedInputStream bis)
throws java.lang.Exception
public java.lang.String read_string_from_stream(java.io.BufferedInputStream bis)
public int get_integer_size()
public int get_bool_size()
public int get_string_size(java.lang.String s)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||