public static class BoxRequestsFile.DownloadThumbnail extends BoxRequestDownload<BoxDownload,BoxRequestsFile.DownloadThumbnail>
BoxRequestDownload.DownloadRequestHandlerBoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE_128 |
static int |
SIZE_256 |
static int |
SIZE_32 |
static int |
SIZE_64 |
JSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Constructor and Description |
|---|
DownloadThumbnail(java.io.File target,
java.lang.String requestUrl,
BoxSession session)
Creates a download thumbnail to file request with the default parameters
|
DownloadThumbnail(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 |
|---|---|
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.
|
getRangeEnd, getRangeStart, getTarget, getTargetStream, getVersion, logDebug, setDownloadStartListener, setHeaders, setProgressListener, setRange, setVersionbuildUrl, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logRequest, parseHashMapEntry, parseJsonObject, send, setBody, setContentType, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic static int SIZE_32
public static int SIZE_64
public static int SIZE_128
public static int SIZE_256
public DownloadThumbnail(java.io.OutputStream outputStream,
java.lang.String requestUrl,
BoxSession session)
outputStream - 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.io.File target,
java.lang.String requestUrl,
BoxSession session)
target - target file to download thumbnail torequestUrl - URL of the download thumbnail endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsFile.DownloadThumbnail setMinWidth(int width)
width - int for the minimum width.public BoxRequestsFile.DownloadThumbnail setMaxWidth(int width)
width - int for the maximum width.public BoxRequestsFile.DownloadThumbnail setMinHeight(int height)
height - int for the minimum height.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.