ants
Class Xdr
java.lang.Object
|
+--ants.Xdr
- public final class Xdr
- extends java.lang.Object
Base class with convenience macros for external data representation.
These methods are declared final so that they can be inlined with
optimization.
Constructor Summary |
Xdr(byte[] buf)
|
Xdr(byte[] buf,
int offset)
|
Xdr(byte[] buf,
int offset,
int len)
|
Xdr(ByteArray buf,
int offset)
|
Xdr(ByteArray buf,
int offset,
int len)
|
Xdr(int len)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BOOLEAN
public static final int BOOLEAN
BYTE
public static final int BYTE
SHORT
public static final int SHORT
INT
public static final int INT
LONG
public static final int LONG
TYPEID
public static final int TYPEID
Xdr
public Xdr(int len)
Xdr
public Xdr(byte[] buf)
Xdr
public Xdr(byte[] buf,
int offset)
Xdr
public Xdr(byte[] buf,
int offset,
int len)
throws java.lang.IndexOutOfBoundsException
Xdr
public Xdr(ByteArray buf,
int offset)
Xdr
public Xdr(ByteArray buf,
int offset,
int len)
throws java.lang.IndexOutOfBoundsException
STRING
public static final int STRING(java.lang.String x)
BYTEARRAY
public static final int BYTEARRAY(ByteArray x)
length
public final int length()
PUT
public final void PUT(boolean x)
PUT
public final void PUT(byte x)
PUT
public final void PUT(short x)
PUT
public final void PUT(int x)
PUT
public final void PUT(long x)
PUT
public final void PUT(TypeID t)
PUT
public final void PUT(java.lang.String x)
PUT
public final void PUT(ByteArray x)
PUT
public final void PUT(byte[] x,
int start,
int length)
BOOLEAN
public final boolean BOOLEAN()
BYTE
public final byte BYTE()
SHORT
public final short SHORT()
INT
public final int INT()
LONG
public final long LONG()
TYPEID
public final TypeID TYPEID()
STRING
public final java.lang.String STRING()
BYTEARRAY
public final ByteArray BYTEARRAY()
BYTES
public final void BYTES(byte[] x,
int start,
int length)
skip
public final void skip(int count)