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 GLMapStorageFile
Searches file with given nameabstract GLMapStorage
findStorage
(String name, boolean create) Opens new storage inside this storage (folder)findStorageRecursive
(String path) Opens new storage with pathabstract Long
Returns free space in storageabstract String
getName()
Gets name of storageabstract GLMapStorage
Gets name of storageabstract String
getPath()
Gets the full path of this storage.abstract GLMapStorageFile[]
List files in storageboolean
registerForSQLite
(String vfsName) Register storage as VFS for SQLiteboolean
Remove 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.
-