public class BoxPreview extends BoxObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAX_HEIGHT |
static java.lang.String |
MAX_WIDTH |
static java.lang.String |
MIN_HEIGHT |
static java.lang.String |
MIN_WIDTH |
static java.lang.String |
PAGE |
Constructor and Description |
---|
BoxPreview() |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getContent()
Get content of the preview.
|
java.lang.Integer |
getFirstPage()
Get the first page number.
|
java.lang.Integer |
getLastPage()
Get the last page number.
|
java.lang.Integer |
getNumPages()
Get number of pages.
|
void |
setContent(java.io.InputStream content)
Set content.
|
void |
setFirstPage(java.lang.Integer firstPage) |
void |
setLastPage(int lastPage)
Set the last page number.
|
void |
writeToParcel(IBoxParcelWrapper parcelWrapper,
int flags) |
contains, equals, getExtraData, getValue, handleUnknown, hashCode, properties, put
toJSONString
public static final java.lang.String MIN_WIDTH
public static final java.lang.String MIN_HEIGHT
public static final java.lang.String MAX_WIDTH
public static final java.lang.String MAX_HEIGHT
public static final java.lang.String PAGE
public void setFirstPage(java.lang.Integer firstPage)
firstPage
- first page numberpublic java.lang.Integer getFirstPage()
public void setLastPage(int lastPage)
lastPage
- last page numberpublic java.lang.Integer getLastPage()
public java.io.InputStream getContent() throws BoxRestException
BoxException
BoxRestException
public java.lang.Integer getNumPages()
public void setContent(java.io.InputStream content)
content
- contentpublic void writeToParcel(IBoxParcelWrapper parcelWrapper, int flags)
writeToParcel
in interface IBoxParcelable
writeToParcel
in class BoxObject