public static class BoxRequestsPreview.DownloadPreview
extends <any>
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE_1024 |
static int |
SIZE_1600 |
static int |
SIZE_2048 |
| Constructor and Description |
|---|
DownloadPreview(java.lang.String id,
java.io.OutputStream outputStream,
java.lang.String requestUrl,
BoxSession session)
Constructs a new request to download a preview
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getMaxHeight()
Gets the maximum height for the preview request.
|
java.lang.Integer |
getMaxWidth()
Gets the maximum width for the preview request.
|
java.lang.Integer |
getMinHeight()
Gets the minimum height for the preview request.
|
java.lang.Integer |
getMinWidth()
Gets the minimum width for the preview request.
|
java.lang.Integer |
getPage() |
BoxRequestsPreview.DownloadPreview |
setMaxHeight(int height)
Sets the maximum height for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMaxSize(int size)
Sets both the maximum height and maximum width for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMaxWidth(int width)
Sets the maximum width for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMinHeight(int height)
Sets the minimum height for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMinSize(int size)
Sets both the minimum height and minimum width for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMinWidth(int width)
Sets the minimum width for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setPage(int pageNumber) |
public static int SIZE_1024
public static int SIZE_1600
public static int SIZE_2048
public DownloadPreview(java.lang.String id,
java.io.OutputStream outputStream,
java.lang.String requestUrl,
BoxSession session)
id - The id of the file to download a preview foroutputStream - The output stream to download the preview torequestUrl - URL for the preview downloadsession - Authenticated session to use to download withpublic java.lang.Integer getPage()
public BoxRequestsPreview.DownloadPreview setPage(int pageNumber)
public java.lang.Integer getMinWidth()
public BoxRequestsPreview.DownloadPreview setMinWidth(int width)
width - int for the minimum width.public java.lang.Integer getMaxWidth()
public BoxRequestsPreview.DownloadPreview setMaxWidth(int width)
width - int for the maximum width.public java.lang.Integer getMinHeight()
public BoxRequestsPreview.DownloadPreview setMinHeight(int height)
height - int for the minimum height.public java.lang.Integer getMaxHeight()
public BoxRequestsPreview.DownloadPreview setMaxHeight(int height)
height - int for the maximum height.public BoxRequestsPreview.DownloadPreview setMinSize(int size)
size - int for the minimum height and minimum width.public BoxRequestsPreview.DownloadPreview setMaxSize(int size)
size - int for the maximum height and maximum width.