NWNFiles.GFFFieldTypes
Class FieldTypeBYTE
java.lang.Object
|
+--NWNFiles.GFFFieldTypes.FieldType
|
+--NWNFiles.GFFFieldTypes.FieldTypeBYTE
- public class FieldTypeBYTE
- extends FieldType
BYTE data type.
Fields inherited from class NWNFiles.GFFFieldTypes.FieldType |
BYTE_TYPE, CExoLocString_TYPE, CExoString_TYPE, CHAR_TYPE, CurrentLanguage, DOUBLE_TYPE, DWORD_TYPE, DWORD64_TYPE, FLOAT_TYPE, INT_TYPE, INT64_TYPE, List_TYPE, RESREF_TYPE, SHORT_TYPE, Struct_TYPE, VOID_TYPE, WORD_TYPE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
interpretData
public Object interpretData(ByteBuffer buffer)
- Returns an Integer containing the value stored in the byte.
- Specified by:
interpretData
in class FieldType
- Parameters:
buffer
- A buffer containing the data. The current position of the buffer should be the biginning of the data and the its length should be at least one byte.
- Returns:
- An Integer object.
getData
public byte[] getData(Object data)
- Returns a one byte length array.
- Specified by:
getData
in class FieldType
- Parameters:
data
- The argument should be an Integer containing the value to be stored in the byte.