Package globus.glmap
Class GLMapFileStorage
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapStorage
globus.glmap.GLMapFileStorage
The GLMapFileStorage class provides an implementation of GLMapStorage
that uses the file system for storage.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The FileInfo class represents a file in the GLMapFileStorage. -
Field Summary
-
Constructor Summary
ConstructorDescriptionGLMapFileStorage
(File file) Constructs a GLMapFileStorage object for the specified file. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Searches file with given namefindStorage
(String name, boolean create) Opens new storage inside this storage (folder)Returns free space in storagegetName()
Gets name of storageGets name of storagegetPath()
Gets the full path of this storage.List files in storageMethods inherited from class globus.glmap.GLMapStorage
findStorageRecursive, registerForSQLite, unregisterForSQLite
Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Field Details
-
file
The file used for storage.
-
-
Constructor Details
-
GLMapFileStorage
Constructs a GLMapFileStorage object for the specified file.- Parameters:
file
- the file to be used for storage
-
-
Method Details
-
equals
-
getParent
Description copied from class:GLMapStorage
Gets name of storage- Specified by:
getParent
in classGLMapStorage
- Returns:
- name of storage
-
getPath
Description copied from class:GLMapStorage
Gets the full path of this storage.- Specified by:
getPath
in classGLMapStorage
- Returns:
- the full path of this storage
-
getName
Description copied from class:GLMapStorage
Gets name of storage- Specified by:
getName
in classGLMapStorage
- Returns:
- name of storage
-
listFiles
Description copied from class:GLMapStorage
List files in storage- Specified by:
listFiles
in classGLMapStorage
- Returns:
- files in storage
-
findFile
Description copied from class:GLMapStorage
Searches file with given name- Specified by:
findFile
in classGLMapStorage
- Parameters:
name
- name of filecreate
- create if missing- Returns:
- file object or null if failed
-
findStorage
Description copied from class:GLMapStorage
Opens new storage inside this storage (folder)- Specified by:
findStorage
in classGLMapStorage
- Parameters:
name
- name of storagecreate
- create if missing- Returns:
- new storage
-
getFreeSpace
Description copied from class:GLMapStorage
Returns free space in storage- Specified by:
getFreeSpace
in classGLMapStorage
- Returns:
- free space in storage or -1 if storage is unavailable.
-