|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iris.Fissures.seed.builder.XdrOutput
public class XdrOutput
Concrete Builder class for writing data in the XDR format.
Constructor Summary | |
---|---|
XdrOutput(int bufferSize)
Constructs a new XdrOutput with a given
buffer. |
Method Summary | |
---|---|
byte[] |
getXdrData()
Returns the buffer holding encoded data. |
int |
getXdrLength()
Returns the amount of encoded data in the buffer. |
boolean |
xdr_array(float[] arr)
Encode the array of floats. |
boolean |
xdr_bytes(java.lang.String s,
int maxlength)
Encode the string. |
boolean |
xdr_double(double n)
Encode the double value. |
boolean |
xdr_float(float n)
Encode the float value. |
boolean |
xdr_int(int n)
Encode the int value. |
boolean |
xdr_long(long n)
Encode the long value. |
boolean |
xdr_short(short n)
Encode the short value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XdrOutput(int bufferSize)
XdrOutput
with a given
buffer.
bufferSize
- Size of buffer to store encoded data in.
java.lang.IllegalArgumentException
- if bufferSize
is not
a multiple of four.Method Detail |
---|
public byte[] getXdrData()
public int getXdrLength()
public boolean xdr_array(float[] arr)
arr
- the array of floats.
public boolean xdr_bytes(java.lang.String s, int maxlength)
s
- the string.maxlength
- the maximum length of the string.
public boolean xdr_double(double n)
n
- the double value.
public boolean xdr_float(float n)
n
- the float value.
public boolean xdr_int(int n)
n
- the int value.
public boolean xdr_long(long n)
n
- the long value.
public boolean xdr_short(short n)
n
- the short value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |