T
- the type of data that be serialized and deserializedpublic abstract class TypeAdapter<T> extends java.lang.Object implements Serializer<T>, Deserializer<T>
Serializer
and Deserializer
in one class for ease of use.Modifier | Constructor and Description |
---|---|
protected |
TypeAdapter(DataType<T> dataType)
Creates a new adapter for the given data type.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Resets the state of this type adapter (if it has state) before a new recording starts.
|
java.io.File |
getCurrentFile()
Gets the current recording file being loaded.
|
DataType<T> |
getDataType()
Gets the type of the data this can serialize.
|
void |
setCurrentFile(java.io.File currentFile)
Sets the current recording file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serialize
deserialize, getSerializedSize
public final DataType<T> getDataType()
Serializer
getDataType
in interface Deserializer<T>
getDataType
in interface Serializer<T>
public void cleanUp()
public final java.io.File getCurrentFile()
public final void setCurrentFile(java.io.File currentFile)