| Constructor and Description |
|---|
SandboxedStorage()
Creates a sandboxed storage on file system.
|
SandboxedStorage(String root)
Creates a storage on file system specifying the root folder where the root folder will be created.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRootFolder(Module module)
Gets the root folder of the storage service for a given module.
|
public SandboxedStorage()
throws IOException
The root folder is determined dynamically depending on the KF context. Each module has a different one.
IOException - if the root cannot be created.Kernel.getContextOwner(),
StorageFs()public SandboxedStorage(String root) throws IOException
The root folder is determined dynamically depending on the KF context. Each module has a different one.
root - the root folder.IllegalArgumentException - if the root already exists and is not a directory.IOException - if the root cannot be created.