public static class BoxRequestsFile.DownloadThumbnail extends BoxRequestDownload<BoxDownload,BoxRequestsFile.DownloadThumbnail>
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxRequestsFile.DownloadThumbnail.Format |
BoxRequestDownload.DownloadRequestHandlerBoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods| Modifier and Type | Field and Description |
|---|---|
protected BoxRequestsFile.DownloadThumbnail.Format |
mFormat |
static int |
SIZE_128 |
static int |
SIZE_160 |
static int |
SIZE_256 |
static int |
SIZE_32 |
static int |
SIZE_320 |
static int |
SIZE_64 |
static int |
SIZE_94 |
mDownloadStartListener, mFileOutputStream, mId, mRangeEnd, mRangeStart, mTargetJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
DownloadThumbnail(java.io.File target,
java.lang.String requestUrl,
BoxSession session)
Deprecated.
Please use the DownloadFile constructor that takes in an id as this method may be removed in future releases
|
DownloadThumbnail(java.io.OutputStream outputStream,
java.lang.String requestUrl,
BoxSession session)
Deprecated.
Please use the DownloadFile constructor that takes in an id as this method may be removed in future releases
|
DownloadThumbnail(java.lang.String id,
java.io.File target,
java.lang.String requestUrl,
BoxSession session)
Creates a download thumbnail to file request with the default parameters
|
DownloadThumbnail(java.lang.String id,
java.io.OutputStream outputStream,
java.lang.String requestUrl,
BoxSession session)
Creates a download thumbnail to output stream request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
protected java.net.URL |
buildUrl() |
BoxRequestsFile.DownloadThumbnail.Format |
getFormat()
Gets the file format of the thumbnail that will be downloaded
|
java.lang.Integer |
getMaxHeight()
Gets the maximum height for the thumbnail in the request
|
java.lang.Integer |
getMaxWidth()
Gets the maximum width for the thumbnail in the request
|
java.lang.Integer |
getMinHeight()
Gets the minimum height for the thumbnail in the request
|
java.lang.Integer |
getMinWidth()
Gets the minimum width for the thumbnail in the request
|
protected java.lang.String |
getThumbnailExtension()
Gets the recommended thumbnail extension for the set thumbnail size.
|
BoxRequestsFile.DownloadThumbnail |
setFormat(BoxRequestsFile.DownloadThumbnail.Format format)
Sets the file format of the thumbnail that will be downloaded.
|
BoxRequestsFile.DownloadThumbnail |
setMaxHeight(int height)
Sets the maximum height for the thumbnail in the request.
|
BoxRequestsFile.DownloadThumbnail |
setMaxWidth(int width)
Sets the maximum width for the thumbnail in the request.
|
BoxRequestsFile.DownloadThumbnail |
setMinHeight(int height)
Sets the minimum height for the thumbnail in the request.
|
BoxRequestsFile.DownloadThumbnail |
setMinSize(int size)
Sets both the minimum height and minimum width for the thumbnail in the request.
|
BoxRequestsFile.DownloadThumbnail |
setMinWidth(int width)
Sets the minimum width for the thumbnail in the request.
|
getId, getRangeEnd, getRangeStart, getTarget, getTargetStream, getVersion, logDebug, setDownloadStartListener, setHeaders, setProgressListener, setRange, setVersioncreateHeaderMap, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logRequest, onSend, onSendCompleted, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic static int SIZE_32
public static int SIZE_64
public static int SIZE_94
public static int SIZE_128
public static int SIZE_160
public static int SIZE_256
public static int SIZE_320
protected BoxRequestsFile.DownloadThumbnail.Format mFormat
public DownloadThumbnail(java.lang.String id,
java.io.OutputStream outputStream,
java.lang.String requestUrl,
BoxSession session)
id - The id of the file to download the thumbnail foroutputStream - The output stream to download the thumbnail torequestUrl - URL of the download thumbnail endpointsession - The authenticated session that will be used to make the request with@Deprecated
public DownloadThumbnail(java.io.OutputStream outputStream,
java.lang.String requestUrl,
BoxSession session)
outputStream - The output stream to download the thumbnail torequestUrl - URL of the download thumbnail endpointsession - The authenticated session that will be used to make the request withpublic DownloadThumbnail(java.lang.String id,
java.io.File target,
java.lang.String requestUrl,
BoxSession session)
id - The id of the file to download a thumbnail fortarget - The target file to download thumbnail torequestUrl - URL of the download thumbnail endpointsession - The authenticated session that will be used to make the request with@Deprecated
public DownloadThumbnail(java.io.File target,
java.lang.String requestUrl,
BoxSession session)
target - The target file to download thumbnail torequestUrl - URL of the download thumbnail endpointsession - The authenticated session that will be used to make the request withpublic java.lang.Integer getMinWidth()
public BoxRequestsFile.DownloadThumbnail setMinWidth(int width)
width - int for the minimum width.public java.lang.Integer getMaxWidth()
public BoxRequestsFile.DownloadThumbnail setMaxWidth(int width)
width - int for the maximum width.public java.lang.Integer getMinHeight()
public BoxRequestsFile.DownloadThumbnail setMinHeight(int height)
height - int for the minimum height.public java.lang.Integer getMaxHeight()
public BoxRequestsFile.DownloadThumbnail setMaxHeight(int height)
height - int for the maximum height.public BoxRequestsFile.DownloadThumbnail setMinSize(int size)
size - int for the minimum height and minimum width.public BoxRequestsFile.DownloadThumbnail setFormat(BoxRequestsFile.DownloadThumbnail.Format format)
format - Format of the thumbnail to returnpublic BoxRequestsFile.DownloadThumbnail.Format getFormat()
protected java.net.URL buildUrl()
throws java.net.MalformedURLException,
java.io.UnsupportedEncodingException
buildUrl in class BoxRequest<BoxDownload,BoxRequestsFile.DownloadThumbnail>java.net.MalformedURLExceptionjava.io.UnsupportedEncodingExceptionprotected java.lang.String getThumbnailExtension()