public class BoxDownload extends BoxJsonObject
BoxJsonObject.BoxJsonObjectCreator<E extends BoxJsonObject>| Constructor and Description |
|---|
BoxDownload(java.lang.String contentDisposition,
long contentLength,
java.lang.String contentType,
java.lang.String contentRange,
java.lang.String date,
java.lang.String expirationDate)
Creates a BoxDownload object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getContentLength()
Gets the length of the content.
|
java.lang.String |
getContentType()
Gets the content type.
|
java.util.Date |
getDate() |
java.lang.Long |
getEndRange() |
java.util.Date |
getExpiration() |
java.lang.String |
getFileName()
Gets the name of the file downloaded.
|
java.io.File |
getOutputFile()
Gets the output file.
|
java.lang.Long |
getStartRange() |
java.lang.Long |
getTotalRange() |
protected void |
setContentRange(java.lang.String contentRange) |
protected void |
setFileName(java.lang.String contentDisposition) |
addInJsonArray, addInJsonArray, createFromJson, createFromJson, equals, getBoxJsonObjectCreator, getPropertiesKeySet, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsJsonArray, getPropertyAsJsonObject, getPropertyAsJsonObjectArray, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, getPropertyAsStringHashSet, getPropertyValue, hashCode, parseJSONMember, remove, set, set, set, set, set, set, set, set, set, toJson, toJsonObjectpublic BoxDownload(java.lang.String contentDisposition,
long contentLength,
java.lang.String contentType,
java.lang.String contentRange,
java.lang.String date,
java.lang.String expirationDate)
contentDisposition - the suggested default file name for the file (generally matches the current file name on Box).contentLength - the size of the file in bytes.contentType - suggested mime type of the file.contentRange - the range covered in this download in the format "bytes 0-1/5".date - date of the response.expirationDate - the estimated date this download is applicable for.protected void setFileName(java.lang.String contentDisposition)
protected void setContentRange(java.lang.String contentRange)
public java.lang.String getFileName()
public java.io.File getOutputFile()
public java.lang.Long getContentLength()
public java.lang.String getContentType()
public java.lang.Long getStartRange()
public java.lang.Long getEndRange()
public java.lang.Long getTotalRange()
public java.util.Date getDate()
public java.util.Date getExpiration()