
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, supportsTransactionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginTransaction, commitTransaction, deleteFromArray, deleteFromObject, loadWithPrefix, rollbackTransaction, saveToArray, saveToObject, supportsTransactionspublic FileJSONStore(String prefix)
public void init()
throws IOException
init in interface JSONStoreIOExceptionpublic com.google.gson.JsonObject load(String id) throws IOException
load in interface JSONStoreIOExceptionpublic void save(String id, com.google.gson.JsonObject object) throws IOException
save in interface JSONStoreIOExceptionpublic void delete(String id) throws IOException
delete in interface JSONStoreIOExceptionpublic String getPrefix()
public static void cleanup()
public static void cleanup(File path)
Copyright © 2017. All rights reserved.