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.


Field Summary
static int BOOLEAN
           
static int BYTE
           
static int INT
           
static int LONG
           
static int SHORT
           
static int TYPEID
           
 
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)
           
 
Method Summary
 boolean BOOLEAN()
           
 byte BYTE()
           
 ByteArray BYTEARRAY()
           
static int BYTEARRAY(ByteArray x)
           
 void BYTES(byte[] x, int start, int length)
           
 int INT()
           
 int length()
           
 long LONG()
           
 void PUT(boolean x)
           
 void PUT(byte x)
           
 void PUT(byte[] x, int start, int length)
           
 void PUT(ByteArray x)
           
 void PUT(int x)
           
 void PUT(long x)
           
 void PUT(short x)
           
 void PUT(java.lang.String x)
           
 void PUT(TypeID t)
           
 short SHORT()
           
 void skip(int count)
           
 java.lang.String STRING()
           
static int STRING(java.lang.String x)
           
 TypeID TYPEID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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)