Package com.dropbox.core.v1
Class DbxEntry.File
- java.lang.Object
- 
- com.dropbox.core.util.Dumpable
- 
- com.dropbox.core.v1.DbxEntry
- 
- com.dropbox.core.v1.DbxEntry.File
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 - Enclosing class:
- DbxEntry
 
 public static final class DbxEntry.File extends DbxEntry The subclass ofDbxEntryused to represent file metadata (as opposed to folder metadata).- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDbxEntry.File.LocationA geo locationstatic classDbxEntry.File.PhotoInfoPhoto metadata that the Dropbox server extracted from the photo file.static classDbxEntry.File.VideoInfoVideo metadata that the Dropbox server extracted from the video file.- 
Nested classes/interfaces inherited from class com.dropbox.core.v1.DbxEntryDbxEntry.File, DbxEntry.Folder, DbxEntry.WithChildren, DbxEntry.WithChildrenC<C>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description java.util.DateclientMtimeThe modification time sent up by the Dropbox desktop client when the file was added or modified.java.lang.StringhumanSizeA human-readable string version of the file size (ex: "13 kb").java.util.DatelastModifiedThe time the file was added, moved, or last had it's contents changed on the Dropbox server.longnumBytesThe size, in bytes, of the file content.DbxEntry.File.PhotoInfophotoInfoIf this file is a photo, this may contain additional photo-related information.static JsonReader<DbxEntry.File>Readerstatic JsonReader<DbxEntry.File>ReaderMaybeDeletedjava.lang.StringrevThe revision of the file at this path.static longserialVersionUIDDbxEntry.File.VideoInfovideoInfoContains details about this file if it is a video- 
Fields inherited from class com.dropbox.core.v1.DbxEntryiconName, mightHaveThumbnail, name, path
 
- 
 - 
Constructor SummaryConstructors Constructor Description File(java.lang.String path, java.lang.String iconName, boolean mightHaveThumbnail, long numBytes, java.lang.String humanSize, java.util.Date lastModified, java.util.Date clientMtime, java.lang.String rev)File(java.lang.String path, java.lang.String iconName, boolean mightHaveThumbnail, long numBytes, java.lang.String humanSize, java.util.Date lastModified, java.util.Date clientMtime, java.lang.String rev, DbxEntry.File.PhotoInfo photoInfo, DbxEntry.File.VideoInfo videoInfo)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DbxEntry.FileasFile()If this metadata entry is a file, return it as aDbxEntry.Fileinstance.DbxEntry.FolderasFolder()If this metadata entry is a folder, return it as aDbxEntry.Folderinstance.protected voiddumpFields(DumpWriter w)booleanequals(DbxEntry.File o)booleanequals(java.lang.Object o)protected java.lang.StringgetTypeName()inthashCode()booleanisFile()Whether this metadata is for a file, which can be cast to typeDbxEntry.File.booleanisFolder()Whether this metadata is for a folder, which can be cast to typeDbxEntry.Folder.- 
Methods inherited from class com.dropbox.core.v1.DbxEntrypartialEquals, partialHashCode, read, readMaybeDeleted
 - 
Methods inherited from class com.dropbox.core.util.DumpabletoString, toString, toStringMultiline, toStringMultiline
 
- 
 
- 
- 
- 
Field Detail- 
serialVersionUIDpublic static final long serialVersionUID - See Also:
- Constant Field Values
 
 - 
numBytespublic final long numBytes The size, in bytes, of the file content.
 - 
humanSizepublic final java.lang.String humanSize A human-readable string version of the file size (ex: "13 kb"). This string will be localized based on theLocaleinDbxRequestConfig.userLocale(passed in to theDbxClientV1constructor).
 - 
lastModifiedpublic final java.util.Date lastModified The time the file was added, moved, or last had it's contents changed on the Dropbox server. (This probably won't match the time on the Dropbox user's filesystem. For that theclientMtimeis a better estimate.)
 - 
clientMtimepublic final java.util.Date clientMtime The modification time sent up by the Dropbox desktop client when the file was added or modified. This time is based on the system clock of the particular host that the client was running on, as opposed to the system clock of the Dropbox servers.This field should not be used to determine if a file has changed, but only as a way to sort files by date (when displaying a list of files to the user). 
 - 
revpublic final java.lang.String rev The revision of the file at this path. This can be used withDbxClientV1.uploadFile(java.lang.String, com.dropbox.core.v1.DbxWriteMode, long, java.io.InputStream)and theDbxWriteMode.update(java.lang.String)mode to make sure you're overwriting the revision of the file you think you're overwriting.
 - 
photoInfopublic final DbxEntry.File.PhotoInfo photoInfo If this file is a photo, this may contain additional photo-related information. This field is only populated if you use theincludeMediaInfo
 - 
videoInfopublic final DbxEntry.File.VideoInfo videoInfo Contains details about this file if it is a video
 - 
Readerpublic static final JsonReader<DbxEntry.File> Reader 
 - 
ReaderMaybeDeletedpublic static final JsonReader<DbxEntry.File> ReaderMaybeDeleted 
 
- 
 - 
Constructor Detail- 
Filepublic File(java.lang.String path, java.lang.String iconName, boolean mightHaveThumbnail, long numBytes, java.lang.String humanSize, java.util.Date lastModified, java.util.Date clientMtime, java.lang.String rev, DbxEntry.File.PhotoInfo photoInfo, DbxEntry.File.VideoInfo videoInfo)- Parameters:
- path-- DbxEntry.path
- iconName-- DbxEntry.iconName
- mightHaveThumbnail-- DbxEntry.mightHaveThumbnail
- numBytes-- numBytes
- humanSize-- humanSize
- lastModified-- lastModified
- clientMtime-- clientMtime
- rev-- rev
- photoInfo-- photoInfo
- videoInfo-- videoInfo
 
 - 
Filepublic File(java.lang.String path, java.lang.String iconName, boolean mightHaveThumbnail, long numBytes, java.lang.String humanSize, java.util.Date lastModified, java.util.Date clientMtime, java.lang.String rev)
 
- 
 - 
Method Detail- 
dumpFieldsprotected void dumpFields(DumpWriter w) - Overrides:
- dumpFieldsin class- DbxEntry
 
 - 
getTypeNameprotected java.lang.String getTypeName() - Overrides:
- getTypeNamein class- Dumpable
 
 - 
isFolderpublic boolean isFolder() Description copied from class:DbxEntryWhether this metadata is for a folder, which can be cast to typeDbxEntry.Folder. (Every metadata object is either for a file or a folder.)
 - 
isFilepublic boolean isFile() Description copied from class:DbxEntryWhether this metadata is for a file, which can be cast to typeDbxEntry.File. (Every metadata object is either for a file or a folder.)
 - 
asFolderpublic DbxEntry.Folder asFolder() Description copied from class:DbxEntryIf this metadata entry is a folder, return it as aDbxEntry.Folderinstance. If it's not a folder, returnnull.
 - 
asFilepublic DbxEntry.File asFile() Description copied from class:DbxEntryIf this metadata entry is a file, return it as aDbxEntry.Fileinstance. If it's not a file, returnnull.
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
equalspublic boolean equals(DbxEntry.File o) 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-