Package com.microej.kernel.green.storage
Class StorageKfFs
- java.lang.Object
-
- ej.storage.fs.StorageFs
-
- com.microej.kernel.green.storage.StorageKfFs
-
- All Implemented Interfaces:
ej.storage.Storage
public class StorageKfFs extends ej.storage.fs.StorageFs
Extends the storage on file system to add sandboxing for the applications.
-
-
Constructor Summary
Constructors Constructor Description StorageKfFs()
Creates a sandboxed storage on file system.StorageKfFs(java.lang.String parent)
Creates a storage on file system specifying the parent folder where the root folder will be created.
-
-
-
Constructor Detail
-
StorageKfFs
public StorageKfFs() throws java.io.IOException
Creates a sandboxed storage on file system.The root folder is determined dynamically depending on the KF context. Each module has a different one.
- Throws:
java.io.IOException
- if the root cannot be created.- See Also:
Kernel.getContextOwner()
,StorageFs()
-
StorageKfFs
public StorageKfFs(java.lang.String parent) throws java.io.IOException
Creates a storage on file system specifying the parent folder where the root folder will be created.The root folder is determined dynamically depending on the KF context. Each module has a different one.
- Parameters:
parent
- the parent folder.- Throws:
java.lang.IllegalArgumentException
- if the root already exists and is not a directory.java.io.IOException
- if the root cannot be created.
-
-