bea.jolt
Class SBuffer

java.lang.Object
  |
  +--bea.jolt.SBuffer

public class SBuffer
extends java.lang.Object

This class provides the constants for the data types. It also provides methods to construct a field ID, to access data type information from the field ID, and to access the unique ordinal number.


Field Summary
static int SBINARY
          The constant for the Byte Array (opaque) data type
static int SBYTE
          The constant for the Byte (8-bit) data type
static int SDOUBLE
          The constant for the Double data type
static int SFLOAT
          The constant for the Float data type
static int SINT
          The constant for the Int (32-bit) data type
static int SSHORT
          The constant for the Short (16-bit) data type
static int SSTRING
          The constant for the String data type
static int SSTRUCT
          The constant for the Structured Buffer data type
 
Constructor Summary
SBuffer()
           
 
Method Summary
static int GETID(int fieldID)
          Gets the unique ordinal value.
static int ID(int id, int type)
          Constructs the 32-bit Field ID.
static int TYPE(int fieldID)
          Gets the data type information from a 32-bit Field ID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSHORT

public static final int SSHORT
The constant for the Short (16-bit) data type

SINT

public static final int SINT
The constant for the Int (32-bit) data type

SBYTE

public static final int SBYTE
The constant for the Byte (8-bit) data type

SFLOAT

public static final int SFLOAT
The constant for the Float data type

SDOUBLE

public static final int SDOUBLE
The constant for the Double data type

SSTRING

public static final int SSTRING
The constant for the String data type

SBINARY

public static final int SBINARY
The constant for the Byte Array (opaque) data type

SSTRUCT

public static final int SSTRUCT
The constant for the Structured Buffer data type
Constructor Detail

SBuffer

public SBuffer()
Method Detail

ID

public static int ID(int id,
                     int type)
Constructs the 32-bit Field ID.
Parameters:
id - A unique 25-bit ordinal number.
type - One of the data type constants.
Returns:
A 32-bit field ID.

TYPE

public static int TYPE(int fieldID)
Gets the data type information from a 32-bit Field ID.
Parameters:
fieldID - The 32-bit Field ID.
Returns:
The data type information.

GETID

public static int GETID(int fieldID)
Gets the unique ordinal value.
Parameters:
fieldID - The 32-bit Field ID.
Returns:
The 25-bit ordinal number.