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
Nested ClassesModifier and TypeClassDescriptionstatic classThe FileInfo class represents a file in the GLMapFileStorage. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGLMapFileStorage(File file) Constructs a GLMapFileStorage object for the specified file. -
Method Summary
Modifier and TypeMethodDescriptionbooleanSearches 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, unregisterForSQLiteMethods 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:GLMapStorageGets name of storage- Specified by:
getParentin classGLMapStorage- Returns:
- name of storage
-
getPath
Description copied from class:GLMapStorageGets the full path of this storage.- Specified by:
getPathin classGLMapStorage- Returns:
- the full path of this storage
-
getName
Description copied from class:GLMapStorageGets name of storage- Specified by:
getNamein classGLMapStorage- Returns:
- name of storage
-
listFiles
Description copied from class:GLMapStorageList files in storage- Specified by:
listFilesin classGLMapStorage- Returns:
- files in storage
-
findFile
Description copied from class:GLMapStorageSearches file with given name- Specified by:
findFilein classGLMapStorage- Parameters:
name- name of filecreate- create if missing- Returns:
- file object or null if failed
-
findStorage
Description copied from class:GLMapStorageOpens new storage inside this storage (folder)- Specified by:
findStoragein classGLMapStorage- Parameters:
name- name of storagecreate- create if missing- Returns:
- new storage
-
getFreeSpace
Description copied from class:GLMapStorageReturns free space in storage- Specified by:
getFreeSpacein classGLMapStorage- Returns:
- free space in storage or -1 if storage is unavailable.
-