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.
|
contains, equals, getExtraData, getKeySet, getValue, handleUnknown, hashCode, properties, put, putAll
toJSONString
public 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 BoxPreview()
public Integer getFirstPage()
public void setFirstPage(Integer firstPage)
firstPage
- first page numberpublic Integer getLastPage()
public void setLastPage(int lastPage)
lastPage
- last page numberpublic InputStream getContent() throws BoxRestException
BoxRestException
public void setContent(InputStream content)
content
- contentpublic Integer getNumPages()
Copyright © 2015 Nuxeo SA. All rights reserved.