public class FileStore
extends java.lang.Object
| 构造器和说明 |
|---|
FileStore() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
deleteFile(java.lang.String filename,
android.content.Context context)
Deletes a file in internal storage.
|
static java.util.Map |
getMapFromFile(java.lang.String filename,
android.content.Context context)
Returns a map of KV pairs from a file in internal
storage.
|
static boolean |
saveMapToFile(java.lang.String filename,
java.util.Map objects,
android.content.Context context)
Saves a file to internal storage with a map of
key value pairs
|
public static boolean saveMapToFile(java.lang.String filename,
java.util.Map objects,
android.content.Context context)
filename - The name of the file to be saved.objects - The KV Pairs to savecontext - The android context objectpublic static java.util.Map getMapFromFile(java.lang.String filename,
android.content.Context context)
filename - The name of the file to be retrievedcontext - The android context objectpublic static boolean deleteFile(java.lang.String filename,
android.content.Context context)
filename - The name of the file to be deletedcontext - The android context object