NWNFiles.GFFFieldTypes
Class FieldTypeRESREF

java.lang.Object
  |
  +--NWNFiles.GFFFieldTypes.FieldType
        |
        +--NWNFiles.GFFFieldTypes.FieldTypeRESREF

public class FieldTypeRESREF
extends FieldType

Author:
Alexandre Brunel A class representing the RESREF data type.

Field Summary
 
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
 
Method Summary
 byte[] getData(Object data)
          Returns byte array containing the data.
 Object interpretData(ByteBuffer buffer)
          Returns a object representing the data stored in the buffer.
 
Methods inherited from class NWNFiles.GFFFieldTypes.FieldType
cloneData, getCurrentLanguage, GetInstance, getTypeName, GetTypeName, getTypeNumber, isCplx, setCurrentLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

interpretData

public Object interpretData(ByteBuffer buffer)
Description copied from class: FieldType
Returns a object representing the data stored in the buffer.

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 its length should be at least one byte.
Returns:
A String containing the data.

getData

public byte[] getData(Object data)
Description copied from class: FieldType
Returns byte array containing the data.

Specified by:
getData in class FieldType
Parameters:
data - Should be a String object.
Returns:
A byte array containing the RESREF.