Package globus.glmap
Class GLMapDocumentTreeStorage
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapStorage
globus.glmap.GLMapDocumentTreeStorage
Storage implementation for document tree.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The FileInfo class represents a file in the GLMapDocumentTreeStorage. -
Field Summary
Modifier and TypeFieldDescriptionfinal android.net.Uri
The URI for accessing the children of the current storage object.final android.net.Uri
The URI of the document tree.final android.net.Uri
The URI representing the current storage object. -
Constructor Summary
ConstructorDescriptionGLMapDocumentTreeStorage
(android.content.ContentResolver resolver, android.net.Uri treeUri) Constructs a GLMapDocumentTreeStorage object for the specified content resolver and tree URI.GLMapDocumentTreeStorage
(android.content.ContentResolver resolver, android.net.Uri treeUri, android.net.Uri uri, GLMapDocumentTreeStorage parent) Constructs a GLMapDocumentTreeStorage object with a parent storage. -
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.int
hashCode()
List files in storageMethods inherited from class globus.glmap.GLMapStorage
findStorageRecursive, registerForSQLite, unregisterForSQLite
Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Field Details
-
treeUri
@NonNull public final android.net.Uri treeUriThe URI of the document tree. This is the root URI of the storage. -
uri
@NonNull public final android.net.Uri uriThe URI representing the current storage object. -
childrenUri
@NonNull public final android.net.Uri childrenUriThe URI for accessing the children of the current storage object.
-
-
Constructor Details
-
GLMapDocumentTreeStorage
public GLMapDocumentTreeStorage(@NonNull android.content.ContentResolver resolver, @NonNull android.net.Uri treeUri) Constructs a GLMapDocumentTreeStorage object for the specified content resolver and tree URI.- Parameters:
resolver
- the content resolver to use for accessing the storagetreeUri
- the URI of the document tree
-
GLMapDocumentTreeStorage
public GLMapDocumentTreeStorage(@NonNull android.content.ContentResolver resolver, @NonNull android.net.Uri treeUri, @NonNull android.net.Uri uri, GLMapDocumentTreeStorage parent) Constructs a GLMapDocumentTreeStorage object with a parent storage.- Parameters:
resolver
- the content resolver to use for accessing the storagetreeUri
- the URI of the document treeuri
- the URI of the current storageparent
- the parent storage
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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.
-