|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dropbox.client2.DropboxAPI.Entry
public static class DropboxAPI.Entry
A metadata entry that describes a file or folder.
| Field Summary | |
|---|---|
long |
bytes
Size of the file. |
String |
clientMtime
For a file, this is the modification time set by the client when the file was added to Dropbox. |
List<DropboxAPI.Entry> |
contents
A list of immediate children if this is a directory. |
String |
hash
If a directory, the hash is its "current version". |
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
|
String |
mimeType
The file's MIME type. |
String |
modified
Last modified date, in "EEE, dd MMM yyyy kk:mm:ss ZZZZZ" form (see RESTUtility#parseDate(String) for parsing this value. |
String |
path
Path to the file from the root. |
String |
rev
Full unique ID for this file's revision. |
String |
root
Name of the root, usually either "dropbox" or "app_folder". |
String |
size
Human-readable (and localized, if possible) description of the file size. |
boolean |
thumbExists
Whether a thumbnail for this is available. |
| Constructor Summary | |
|---|---|
DropboxAPI.Entry()
|
|
DropboxAPI.Entry(Map<String,Object> map)
Creates an entry from a map, usually received from the metadata call. |
|
| Method Summary | |
|---|---|
String |
fileName()
Returns the file name if this is a file (the part after the last slash in the path). |
String |
parentPath()
Returns the path of the parent directory if this is a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public long bytes
public String hash
public String icon
public boolean isDir
public String modified
RESTUtility#parseDate(String) for parsing this value.
public String clientMtime
This is not set for folders.
public String path
public String root
public String size
public String mimeType
public String rev
public boolean thumbExists
public boolean isDeleted
public List<DropboxAPI.Entry> contents
public static final JsonExtractor<DropboxAPI.Entry> JsonExtractor
| Constructor Detail |
|---|
public DropboxAPI.Entry(Map<String,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()
| Method Detail |
|---|
public String fileName()
public String parentPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||