public class BoxFile.Info extends BoxItem.Info
Constructor and Description |
---|
BoxFile.Info()
Constructs an empty Info object.
|
BoxFile.Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
long |
getCommentCount()
Gets the number of comments on the file.
|
String |
getExtension()
Gets the extension suffix of the file, excluding the dot.
|
boolean |
getIsPackage()
Gets whether or not the file is an OSX package.
|
EnumSet<BoxFile.Permission> |
getPermissions()
Gets the permissions that the current user has on the file.
|
BoxFile |
getResource()
Gets the resource associated with this Info.
|
String |
getSha1()
Gets the SHA1 hash of the file.
|
String |
getVersionNumber()
Gets the current version number of the file.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
getContentCreatedAt, getContentModifiedAt, getCreatedAt, getCreatedBy, getDescription, getEtag, getItemStatus, getModifiedAt, getModifiedBy, getName, getOwnedBy, getParent, getPathCollection, getPurgedAt, getSequenceID, getSharedLink, getSize, getTags, getTrashedAt, setDescription, setName, setSharedLink
getID
clearPendingChanges, getPendingChanges
public BoxFile.Info()
public BoxFile.Info(String json)
json
- the JSON string to parse.public BoxFile getResource()
BoxResource.Info
getResource
in class BoxResource.Info
public String getVersionNumber()
public long getCommentCount()
public EnumSet<BoxFile.Permission> getPermissions()
public String getExtension()
public boolean getIsPackage()
protected void parseJSONMember(JsonObject.Member member)
BoxJSONObject
Subclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember
in class BoxItem.Info
member
- the JSON member to be parsed.