public static class DropboxAPI.Entry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
long |
bytes
Size of the file.
|
java.lang.String |
clientMtime
For a file, this is the modification time set by the client when
the file was added to Dropbox.
|
java.util.List<DropboxAPI.Entry> |
contents
A list of immediate children if this is a directory.
|
java.lang.String |
hash
If a directory, the hash is its "current version".
|
java.lang.String |
icon
Name of the icon to display for this entry.
|
boolean |
isDeleted
Whether this entry has been deleted but not removed from the
metadata yet.
|
boolean |
isDir
True if this entry is a directory, or false if it's a file.
|
static JsonExtractor<DropboxAPI.Entry> |
JsonExtractor |
java.lang.String |
mimeType
The file's MIME type.
|
java.lang.String |
modified
Last modified date, in "EEE, dd MMM yyyy kk:mm:ss ZZZZZ" form (see
RESTUtility#parseDate(String) for parsing this value. |
java.lang.String |
path
Path to the file from the root.
|
java.lang.String |
rev
Full unique ID for this file's revision.
|
java.lang.String |
root
Name of the root, usually either "dropbox" or "app_folder".
|
java.lang.String |
size
Human-readable (and localized, if possible) description of the
file size.
|
boolean |
thumbExists
Whether a thumbnail for this is available.
|
| Constructor and Description |
|---|
DropboxAPI.Entry() |
DropboxAPI.Entry(java.util.Map<java.lang.String,java.lang.Object> map)
Creates an entry from a map, usually received from the metadata
call.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
fileName()
Returns the file name if this is a file (the part after the last
slash in the path).
|
java.lang.String |
parentPath()
Returns the path of the parent directory if this is a file.
|
public long bytes
public java.lang.String hash
public java.lang.String icon
public boolean isDir
public java.lang.String modified
RESTUtility#parseDate(String) for parsing this value.public java.lang.String clientMtime
This is not set for folders.
public java.lang.String path
public java.lang.String root
public java.lang.String size
public java.lang.String mimeType
public java.lang.String rev
public boolean thumbExists
public boolean isDeleted
public java.util.List<DropboxAPI.Entry> contents
public static final JsonExtractor<DropboxAPI.Entry> JsonExtractor
public DropboxAPI.Entry(java.util.Map<java.lang.String,java.lang.Object> map)
map - the map representation of the JSON received from the
metadata call, which should look like this:
{
"hash": "528dda36e3150ba28040052bbf1bfbd1",
"thumb_exists": false,
"bytes": 0,
"modified": "Sat, 12 Jan 2008 23:10:10 +0000",
"path": "/Public",
"is_dir": true,
"size": "0 bytes",
"root": "dropbox",
"contents": [
{
"thumb_exists": false,
"bytes": 0,
"modified": "Wed, 16 Jan 2008 09:11:59 +0000",
"path": "/Public/♥asdas♥",
"is_dir": true,
"icon": "folder",
"size": "0 bytes"
},
{
"thumb_exists": false,
"bytes": 4392763,
"modified": "Thu, 15 Jan 2009 02:52:43 +0000",
"path": "/Public/名称未設定フォルダ.zip",
"is_dir": false,
"icon": "page_white_compressed",
"size": "4.2MB"
}
],
"icon": "folder_public"
}
public DropboxAPI.Entry()