public class DiskStore extends Object
| Modifier and Type | Method and Description |
|---|---|
File |
addFile(String key)
Add a file to the store.
|
String |
generateUniqueKey()
Generates a unique diskstore key.
|
File |
getFile(String key)
Retrieve a File from a store key.
|
static DiskStore |
getInstance()
Access to the shared instance.
|
void |
removeFile(String key)
Remove a file from the store.
|
public static final String ROOT_PATH
public static DiskStore getInstance()
public String generateUniqueKey()
public File getFile(String key)
key - Unique file resource identifier.public void removeFile(String key) throws IOException
key - Unique file resource identifier.IOException - In case the file cannot be deleted.Copyright © 2016. All Rights Reserved.