bea.jolt
Class SBuffer

java.lang.Object
  extended bybea.jolt.SBuffer

public class SBuffer
extends java.lang.Object

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


Field Summary
static java.lang.String encode
          Encoding Name
static java.lang.String I18NPROPERTYCLASS
           
static boolean jolti18nFlag
           
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 SMBSTRING
          The constant for the MBString 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 byte[] getBytes(java.lang.String str)
           
static java.lang.String getEncode()
           
static int GETID(int fieldID)
          Get the unique ordinal value.
static boolean getJolti18nFlag()
           
static java.lang.String getString(byte[] buf, int offset, int count)
           
static int ID(int id, int type)
          This method is to construct the 32-bit Field ID.
static int TYPE(int fieldID)
          Get 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

See Also:
Constant Field Values

SINT

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

See Also:
Constant Field Values

SBYTE

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

See Also:
Constant Field Values

SFLOAT

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

See Also:
Constant Field Values

SDOUBLE

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

See Also:
Constant Field Values

SSTRING

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

See Also:
Constant Field Values

SBINARY

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

See Also:
Constant Field Values

SSTRUCT

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

See Also:
Constant Field Values

SMBSTRING

public static final int SMBSTRING
The constant for the MBString data type

See Also:
Constant Field Values

encode

public static final java.lang.String encode
Encoding Name


jolti18nFlag

public static final boolean jolti18nFlag

I18NPROPERTYCLASS

public static final java.lang.String I18NPROPERTYCLASS
See Also:
Constant Field Values
Constructor Detail

SBuffer

public SBuffer()
Method Detail

ID

public static int ID(int id,
                     int type)
This method is to construct 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)
Get 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)
Get the unique ordinal value.

Parameters:
fieldID - The 32-bit Field ID
Returns:
The 25-bit ordinal number.

getJolti18nFlag

public static boolean getJolti18nFlag()

getEncode

public static java.lang.String getEncode()

getBytes

public static byte[] getBytes(java.lang.String str)

getString

public static java.lang.String getString(byte[] buf,
                                         int offset,
                                         int count)