public class ImageRequest extends Object
| Constructor and Description |
|---|
ImageRequest() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getImage()
The image input stream (.jpg, or .png) or compressed (.zip) file of images to classify.
|
File |
getImageAsFile()
The image file (.jpg, or .png) or compressed (.zip) file of images to classify.
|
String |
getUrl()
The URL of an image (.jpg, or .png).
|
void |
setImage(InputStream image) |
void |
setUrl(String url) |
public String getUrl()
public InputStream getImage()
public File getImageAsFile() throws IOException
IOException - When the connector can't process the image input stream.public void setUrl(String url)
url - the url to setpublic void setImage(InputStream image)
image - the image to setCopyright © 2010–2017. All rights reserved.