public class Photo extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Photo(Place place,
String reference,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
Photo |
download(int maxWidth,
int maxHeight,
Param... extraParams)
Downloads the photo and caches it within the photo.
|
Photo |
download(Param... extraParams)
Downloads the photo and caches it within the photo.
|
int |
getHeight()
Returns the height of the photo.
|
BufferedImage |
getImage()
Returns an Image from the specified photo reference.
|
InputStream |
getInputStream()
Returns the input stream of the image.
|
String |
getReference()
Returns the reference token to the photo.
|
int |
getWidth()
Returns the width of the photo.
|
public Photo download(int maxWidth, int maxHeight, Param... extraParams)
maxWidth - of photomaxHeight - of photoextraParams - to append to request urlpublic Photo download(Param... extraParams)
extraParams - to append to request urlpublic InputStream getInputStream()
download(int, int, Param...)
must be called prior to calling this.public BufferedImage getImage()
public String getReference()
public int getWidth()
public int getHeight()
Copyright © 2014–2015. All rights reserved.