IPC
Class primFmttrs

java.lang.Object
  extended by IPC.primFmttrs

public class primFmttrs
extends java.lang.Object


Field Summary
static int BOOLEAN_FMT
           
static int BYTE_FMT
           
static int BYTE_SIZE
           
static int CHAR_FMT
           
static int CHAR_SIZE
           
static int DOUBLE_FMT
           
static int DOUBLE_SIZE
           
static int FLOAT_FMT
           
static int FLOAT_SIZE
           
static int INT_FMT
           
static int INT_SIZE
           
static int LONG_FMT
           
static int LONG_SIZE
           
static int MAXFORMATTERS
           
static int PTR_SIZE
           
static int SHORT_FMT
           
static int SHORT_SIZE
           
static int STR_FMT
           
static int UBYTE_FMT
           
static int UINT_FMT
           
static int ULONG_FMT
           
static int USHORT_FMT
           
 
Constructor Summary
primFmttrs()
           
 
Method Summary
static int ALength(int type)
           
static void Decode(int type, java.lang.Object dataStruct, int dstart, int buffer)
           
static void DecodeElement(int type, java.lang.Object array, int index, int buffer)
           
static int ELength(int type, java.lang.Object dataStruct, int dstart)
           
static void Encode(int type, java.lang.Object dataStruct, int dstart, int buffer)
           
static void EncodeElement(int type, java.lang.Object array, int index, int buffer)
           
static char formatGetChar(int buffer)
           
static int formatGetInt(int buffer)
           
static void formatPutChar(int buffer, char theChar)
           
static void formatPutInt(int buffer, int theInt)
           
static int getIntField(java.lang.Object object, int n)
           
static java.lang.Object getObjectField(java.lang.Object object, int n)
           
static void setObjectField(java.lang.Object object, int n, java.lang.Object theObject)
           
static boolean SimpleType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT_FMT

public static final int INT_FMT
See Also:
Constant Field Values

BOOLEAN_FMT

public static final int BOOLEAN_FMT
See Also:
Constant Field Values

FLOAT_FMT

public static final int FLOAT_FMT
See Also:
Constant Field Values

DOUBLE_FMT

public static final int DOUBLE_FMT
See Also:
Constant Field Values

BYTE_FMT

public static final int BYTE_FMT
See Also:
Constant Field Values

STR_FMT

public static final int STR_FMT
See Also:
Constant Field Values

UBYTE_FMT

public static final int UBYTE_FMT
See Also:
Constant Field Values

CHAR_FMT

public static final int CHAR_FMT
See Also:
Constant Field Values

SHORT_FMT

public static final int SHORT_FMT
See Also:
Constant Field Values

LONG_FMT

public static final int LONG_FMT
See Also:
Constant Field Values

USHORT_FMT

public static final int USHORT_FMT
See Also:
Constant Field Values

UINT_FMT

public static final int UINT_FMT
See Also:
Constant Field Values

ULONG_FMT

public static final int ULONG_FMT
See Also:
Constant Field Values

MAXFORMATTERS

public static final int MAXFORMATTERS
See Also:
Constant Field Values

CHAR_SIZE

public static final int CHAR_SIZE
See Also:
Constant Field Values

BYTE_SIZE

public static final int BYTE_SIZE
See Also:
Constant Field Values

SHORT_SIZE

public static final int SHORT_SIZE
See Also:
Constant Field Values

INT_SIZE

public static final int INT_SIZE
See Also:
Constant Field Values

LONG_SIZE

public static final int LONG_SIZE
See Also:
Constant Field Values

FLOAT_SIZE

public static final int FLOAT_SIZE
See Also:
Constant Field Values

DOUBLE_SIZE

public static final int DOUBLE_SIZE
See Also:
Constant Field Values

PTR_SIZE

public static final int PTR_SIZE
See Also:
Constant Field Values
Constructor Detail

primFmttrs

public primFmttrs()
Method Detail

formatGetChar

public static char formatGetChar(int buffer)

formatPutChar

public static void formatPutChar(int buffer,
                                 char theChar)

formatGetInt

public static int formatGetInt(int buffer)

formatPutInt

public static void formatPutInt(int buffer,
                                int theInt)

getIntField

public static int getIntField(java.lang.Object object,
                              int n)
                       throws java.lang.Exception
Throws:
java.lang.Exception

setObjectField

public static void setObjectField(java.lang.Object object,
                                  int n,
                                  java.lang.Object theObject)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getObjectField

public static java.lang.Object getObjectField(java.lang.Object object,
                                              int n)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

Encode

public static void Encode(int type,
                          java.lang.Object dataStruct,
                          int dstart,
                          int buffer)
                   throws java.lang.Exception
Throws:
java.lang.Exception

Decode

public static void Decode(int type,
                          java.lang.Object dataStruct,
                          int dstart,
                          int buffer)
                   throws java.lang.Exception
Throws:
java.lang.Exception

ELength

public static int ELength(int type,
                          java.lang.Object dataStruct,
                          int dstart)
                   throws java.lang.Exception
Throws:
java.lang.Exception

ALength

public static int ALength(int type)
                   throws java.lang.Exception
Throws:
java.lang.Exception

SimpleType

public static boolean SimpleType(int type)
                          throws java.lang.Exception
Throws:
java.lang.Exception

EncodeElement

public static void EncodeElement(int type,
                                 java.lang.Object array,
                                 int index,
                                 int buffer)
                          throws java.lang.Exception
Throws:
java.lang.Exception

DecodeElement

public static void DecodeElement(int type,
                                 java.lang.Object array,
                                 int index,
                                 int buffer)
                          throws java.lang.Exception
Throws:
java.lang.Exception