public class BoxPreview extends BoxObject
| Modifier and Type | Field and Description |
|---|---|
static String |
MAX_HEIGHT |
static String |
MAX_WIDTH |
static String |
MIN_HEIGHT |
static String |
MIN_WIDTH |
static String |
PAGE |
| Constructor and Description |
|---|
BoxPreview() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent()
Get content of the preview.
|
Integer |
getFirstPage()
Get the first page number.
|
Integer |
getLastPage()
Get the last page number.
|
Integer |
getNumPages()
Get number of pages.
|
void |
setContent(InputStream content)
Set content.
|
void |
setFirstPage(Integer firstPage) |
void |
setLastPage(int lastPage)
Set the last page number.
|
void |
writeToParcel(IBoxParcelWrapper parcelWrapper,
int flags) |
contains, equals, extraProperties, getExtraData, getValue, handleUnknown, hashCode, puttoJSONStringpublic static final String MIN_WIDTH
public static final String MIN_HEIGHT
public static final String MAX_WIDTH
public static final String MAX_HEIGHT
public static final String PAGE
public void setFirstPage(Integer firstPage)
firstPage - first page numberpublic Integer getFirstPage()
public void setLastPage(int lastPage)
lastPage - last page numberpublic Integer getLastPage()
public InputStream getContent() throws BoxRestException
BoxExceptionBoxRestExceptionpublic Integer getNumPages()
public void setContent(InputStream content)
content - contentpublic void writeToParcel(IBoxParcelWrapper parcelWrapper, int flags)
writeToParcel in interface IBoxParcelablewriteToParcel in class BoxObjectCopyright © 2014. All Rights Reserved.