|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--NWNFiles.GFFFieldTypes.FieldType
This class is an abstract class which is used to disign GFF file field types.
Field Summary | |
static long |
BYTE_TYPE
Data type |
static long |
CExoLocString_TYPE
Data type |
static long |
CExoString_TYPE
Data type |
static long |
CHAR_TYPE
Data type |
protected static ResourceBundle |
CurrentLanguage
|
static long |
DOUBLE_TYPE
Data type |
static long |
DWORD_TYPE
Data type |
static long |
DWORD64_TYPE
Data type |
static long |
FLOAT_TYPE
Data type |
static long |
INT_TYPE
Data type |
static long |
INT64_TYPE
Data type |
static long |
List_TYPE
Data type |
static long |
RESREF_TYPE
Data type |
static long |
SHORT_TYPE
Data type |
static long |
Struct_TYPE
Data type |
static long |
VOID_TYPE
Data type |
static long |
WORD_TYPE
Data type |
Constructor Summary | |
FieldType(long _typeNumber)
Constructs a complex data type. |
|
FieldType(long _typeNumber,
boolean _isCplx)
Constructor |
Method Summary | |
Object |
cloneData(Object data)
|
static ResourceBundle |
getCurrentLanguage()
REturns the local settings used by all FildTypeClasses |
abstract byte[] |
getData(Object data)
Returns byte array containing the data. |
static FieldType |
GetInstance(long type)
Returns an instance of the class representing the data type. |
String |
getTypeName()
Returns the data type name. |
static String |
GetTypeName(long type)
Returns the data type name. |
long |
getTypeNumber()
Returns the data type. |
abstract Object |
interpretData(ByteBuffer buffer)
Returns a object representing the data stored in the buffer. |
boolean |
isCplx()
Tells if the data type is complex. |
static void |
setCurrentLanguage(Locale locale)
Change the locale settings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long BYTE_TYPE
public static final long CExoLocString_TYPE
public static final long CExoString_TYPE
public static final long CHAR_TYPE
protected static ResourceBundle CurrentLanguage
public static final long DOUBLE_TYPE
public static final long DWORD_TYPE
public static final long DWORD64_TYPE
public static final long FLOAT_TYPE
public static final long INT_TYPE
public static final long INT64_TYPE
public static final long List_TYPE
public static final long RESREF_TYPE
public static final long SHORT_TYPE
public static final long Struct_TYPE
public static final long VOID_TYPE
public static final long WORD_TYPE
Constructor Detail |
public FieldType(long _typeNumber)
_typeNumber
- Data type.public FieldType(long _typeNumber, boolean _isCplx)
_typeNumber
- Data type._isCplx
- A boolean telling if the data type is complex.Method Detail |
public static ResourceBundle getCurrentLanguage()
public static FieldType GetInstance(long type) throws InvalidType
type
- Data type.
InvalidType
public static String GetTypeName(long type)
type
- Data type.public static void setCurrentLanguage(Locale locale)
locale
- New localepublic abstract byte[] getData(Object data)
data
- The object representing the data.public final String getTypeName()
public long getTypeNumber()
public abstract Object interpretData(ByteBuffer buffer)
buffer
- A buffer containing the data. The current position of the buffer should be the biginning of the data.public final boolean isCplx()
public Object cloneData(Object data)
data
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |