Package globus.glmap
Class GLMapStorage
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapStorage
- Direct Known Subclasses:
GLMapDocumentTreeStorage,GLMapFileStorage
Interface for storage of data
-
Method Summary
Modifier and TypeMethodDescriptionabstract GLMapStorageFileSearches file with given nameabstract GLMapStoragefindStorage(String name, boolean create) Opens new storage inside this storage (folder)findStorageRecursive(String path) Opens new storage with pathabstract LongReturns free space in storageabstract StringgetName()Gets name of storageabstract GLMapStorageGets name of storageabstract StringgetPath()Gets the full path of this storage.abstract GLMapStorageFile[]List files in storagebooleanregisterForSQLite(String vfsName) Register storage as VFS for SQLitebooleanRemove storage registration of SQLiteMethods inherited from class globus.glmap.GLNativeObject
dispose
-
Method Details
-
registerForSQLite
Register storage as VFS for SQLite- Parameters:
vfsName- name to register as VFS- Returns:
- true if success
-
unregisterForSQLite
public boolean unregisterForSQLite()Remove storage registration of SQLite- Returns:
- true if success
-
getParent
Gets name of storage- Returns:
- name of storage
-
getPath
Gets the full path of this storage.- Returns:
- the full path of this storage
-
getName
Gets name of storage- Returns:
- name of storage
-
listFiles
List files in storage- Returns:
- files in storage
-
findFile
Searches file with given name- Parameters:
name- name of filecreate- create if missing- Returns:
- file object or null if failed
-
findStorage
Opens new storage inside this storage (folder)- Parameters:
name- name of storagecreate- create if missing- Returns:
- new storage
-
findStorageRecursive
Opens new storage with path- Parameters:
path- path inside storage. e.g. "a/b/c"- Returns:
- new storage
-
getFreeSpace
Returns free space in storage- Returns:
- free space in storage or -1 if storage is unavailable.
-