public class AndroidPlayerData extends PlayerData
PlayerData
Constructor and Description |
---|
AndroidPlayerData() |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureDataDirectoryExists()
Internal method for setting up the save data directory (if required)
|
FileHandle |
resolve(java.lang.String[] filepath)
Returns a
FileHandle for a file or directory within the save data directory |
FileHandle |
resolveTmp(java.lang.String[] filepath)
Returns a
FileHandle for a temporary file or directory within the save data directory |
void |
wipe()
Wipes all data within the game data location
|
createDirectory, delete, ensureDirectoryExistsForFile, getFileHandle, hasDirectory, hasFile, readBytes, readJson, readString, readXml, writeBytes, writeJson, writeString, writeXml
public FileHandle resolve(java.lang.String[] filepath)
PlayerData
FileHandle
for a file or directory within the save data directoryresolve
in class PlayerData
filepath
- The path broken up by directory/fileFileHandle
instancepublic FileHandle resolveTmp(java.lang.String[] filepath)
PlayerData
FileHandle
for a temporary file or directory within the save data directoryresolveTmp
in class PlayerData
filepath
- The path broken up by directory/fileFileHandle
instanceprotected void ensureDataDirectoryExists() throws java.io.IOException
PlayerData
ensureDataDirectoryExists
in class PlayerData
java.io.IOException
public void wipe() throws PlayerDataException, java.io.IOException
PlayerData
wipe
in class PlayerData
PlayerDataException
- Thrown if the game data location cannot be accessed or the
data could not be wipedjava.io.IOException