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
Nested ClassesModifier and TypeClassDescriptionstatic classThe FileInfo class represents a file in the GLMapDocumentTreeStorage. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal android.net.UriThe URI for accessing the children of the current storage object.final android.net.UriThe URI of the document tree.final android.net.UriThe URI representing the current storage object. -
Constructor Summary
ConstructorsConstructorDescriptionGLMapDocumentTreeStorage(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 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.inthashCode()List files in storageMethods inherited from class globus.glmap.GLMapStorage
findStorageRecursive, registerForSQLite, unregisterForSQLiteMethods 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: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.
-