Bees v0.5.0 API

bees.core
Class Xdr

java.lang.Object
  |
  +--bees.core.Xdr

public final class Xdr
extends java.lang.Object

An Xdr object wraps a system packet buffer for access by untrusted code. It also provides a number of utility functions for marshalling and unmarshalling data.


Field Summary
static int BOOLEAN
          The length of a boolean in an xdr.
static int BYTE
          The length of a byte in an xdr.
static int DOUBLE
          The length of a double in an xdr.
static int FLOAT
          The length of a float in an xdr.
static int INT
          The length of a int in an xdr.
static int LONG
          The length of a long in an xdr.
static int SHORT
          The length of a short in an xdr.
static int TYPEID
          The length of a typeid in an xdr.
 
Method Summary
 boolean BOOLEAN()
           
 byte BYTE()
           
 XdrByteArray BYTEARRAY()
           
static int BYTEARRAY(ByteArray x)
           
static int BYTES(byte[] x)
           
 void BYTES(byte[] buffer, int offset, int length)
           
 byte[] BYTES(int length)
           
 double DOUBLE()
           
 float FLOAT()
           
 int getLength()
           
 int getReadCursor()
           
 int getUnreadLength()
           
 int INT()
           
 int LEINT()
           
 long LELONG()
           
 short LESHORT()
           
 long LONG()
           
 void PUT(boolean x)
           
 void PUT(byte x)
           
 void PUT(byte[] x)
           
 void PUT(byte[] x, int offset, int length)
           
 void PUT(ByteArray x)
           
 void PUT(double x)
           
 void PUT(float x)
           
 void PUT(int x)
           
 void PUT(long x)
           
 void PUT(short x)
           
 void PUT(java.lang.String x)
           
 void PUT(TypeID x)
           
 void PUTLE(int x)
           
 void PUTLE(long x)
           
 void PUTLE(short x)
           
 short SHORT()
           
 void SKIP(int len)
           
 java.lang.String STRING()
           
static int STRING(java.lang.String x)
           
 Xdr subXDR()
           
 java.lang.String toString()
           
 TypeID TYPEID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BOOLEAN

public static final int BOOLEAN
The length of a boolean in an xdr.

BYTE

public static final int BYTE
The length of a byte in an xdr.

SHORT

public static final int SHORT
The length of a short in an xdr.

INT

public static final int INT
The length of a int in an xdr.

FLOAT

public static final int FLOAT
The length of a float in an xdr.

DOUBLE

public static final int DOUBLE
The length of a double in an xdr.

LONG

public static final int LONG
The length of a long in an xdr.

TYPEID

public static final int TYPEID
The length of a typeid in an xdr.
Method Detail

getUnreadLength

public int getUnreadLength()

STRING

public static final int STRING(java.lang.String x)

BYTES

public static final int BYTES(byte[] x)

BYTEARRAY

public static final int BYTEARRAY(ByteArray x)

getReadCursor

public final int getReadCursor()

getLength

public final int getLength()

SKIP

public final void SKIP(int len)

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)

PUTLE

public final void PUTLE(short x)

PUTLE

public final void PUTLE(int x)

PUT

public final void PUT(float x)

PUT

public final void PUT(double x)

PUT

public final void PUT(long x)

PUTLE

public final void PUTLE(long x)

PUT

public final void PUT(byte[] x)

PUT

public final void PUT(byte[] x,
                      int offset,
                      int length)

PUT

public final void PUT(ByteArray x)

PUT

public final void PUT(java.lang.String x)

PUT

public final void PUT(TypeID x)

BOOLEAN

public final boolean BOOLEAN()

BYTE

public final byte BYTE()

SHORT

public final short SHORT()

INT

public final int INT()

LESHORT

public final short LESHORT()

LEINT

public final int LEINT()

FLOAT

public final float FLOAT()

DOUBLE

public final double DOUBLE()

LONG

public final long LONG()

LELONG

public final long LELONG()

BYTES

public final byte[] BYTES(int length)

BYTES

public final void BYTES(byte[] buffer,
                        int offset,
                        int length)

BYTEARRAY

public final XdrByteArray BYTEARRAY()

STRING

public final java.lang.String STRING()

TYPEID

public final TypeID TYPEID()

subXDR

public final Xdr subXDR()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/