public class FileJSONStore extends AbstractJSONStore implements JSONStore
Constructor and Description |
---|
FileJSONStore(String prefix) |
Modifier and Type | Method and Description |
---|---|
static void |
cleanup() |
static void |
cleanup(File path) |
void |
close() |
void |
delete(String id) |
String |
getPrefix() |
void |
init() |
com.google.gson.JsonObject |
load(String id) |
void |
save(String id,
com.google.gson.JsonObject object) |
beginTransaction, commitTransaction, deleteFromArray, deleteFromObject, loadWithPrefix, rollbackTransaction, saveToArray, saveToObject, supportsTransactions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginTransaction, commitTransaction, deleteFromArray, deleteFromObject, loadWithPrefix, rollbackTransaction, saveToArray, saveToObject, supportsTransactions
public FileJSONStore(String prefix)
public void init() throws IOException
init
in interface JSONStore
IOException
public com.google.gson.JsonObject load(String id) throws IOException
load
in interface JSONStore
IOException
public void save(String id, com.google.gson.JsonObject object) throws IOException
save
in interface JSONStore
IOException
public void delete(String id) throws IOException
delete
in interface JSONStore
IOException
public String getPrefix()
public static void cleanup()
public static void cleanup(File path)
Copyright © 2017. All rights reserved.