public class FileSystemBridge extends BaseDataBridge implements IFileSystem, APIBridge
apiGroup| Constructor and Description |
|---|
FileSystemBridge(IFileSystem delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
FileDescriptor |
createFileDescriptor(FileDescriptor parent,
java.lang.String name)
Creates a new reference to a new or existing location in the filesystem.
|
FileDescriptor |
getApplicationCacheFolder()
Returns a reference to the cache folder for the current application.
|
FileDescriptor |
getApplicationCloudFolder()
Returns a reference to the cloud synchronizable folder for the current application.
|
FileDescriptor |
getApplicationDocumentsFolder()
Returns a reference to the documents folder for the current application.
|
FileDescriptor |
getApplicationFolder()
Returns a reference to the application installation folder.
|
FileDescriptor |
getApplicationProtectedFolder()
Returns a reference to the protected storage folder for the current application.
|
IFileSystem |
getDelegate()
Get the delegate implementation.
|
char |
getSeparator()
Returns the file system dependent file separator.
|
FileDescriptor |
getSystemExternalFolder()
Returns a reference to the external storage folder provided by the OS.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
void |
setDelegate(IFileSystem delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic FileSystemBridge(IFileSystem delegate)
delegate - The delegate implementing platform specific functions.public final IFileSystem getDelegate()
public final void setDelegate(IFileSystem delegate)
delegate - The delegate implementing platform specific functions.public FileDescriptor createFileDescriptor(FileDescriptor parent, java.lang.String name)
createFileDescriptor in interface IFileSystemparent - Parent directory.name - Name of new file or directory.public FileDescriptor getApplicationCacheFolder()
getApplicationCacheFolder in interface IFileSystempublic FileDescriptor getApplicationCloudFolder()
getApplicationCloudFolder in interface IFileSystempublic FileDescriptor getApplicationDocumentsFolder()
getApplicationDocumentsFolder in interface IFileSystempublic FileDescriptor getApplicationFolder()
getApplicationFolder in interface IFileSystempublic FileDescriptor getApplicationProtectedFolder()
getApplicationProtectedFolder in interface IFileSystempublic char getSeparator()
getSeparator in interface IFileSystempublic FileDescriptor getSystemExternalFolder()
getSystemExternalFolder in interface IFileSystempublic APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BaseDataBridgerequest - APIRequest object containing method name and parameters.