public class FlickrImage extends Object
getImage()
method).
It's just a placeholder for any information known about a Flickr image.Modifier and Type | Field and Description |
---|---|
static String |
sizeSuffixes
The allowable size suffixes
|
Constructor and Description |
---|
FlickrImage(long id,
int farm,
int server,
String secret,
char size,
String extension) |
Modifier and Type | Method and Description |
---|---|
static FlickrImage |
create(URL url)
Parses a Flickr URL and updates this object.
|
int |
getFarm() |
long |
getId() |
MBFImage |
getImage()
Reads the actual flickr image.
|
File |
getLocalFile() |
String |
getSecret() |
int |
getServer() |
char |
getSize() |
URI |
getUrl() |
boolean |
isOriginal() |
void |
setFarm(int farm) |
void |
setId(long id) |
void |
setLocalFile(File localFile) |
void |
setOriginal(boolean isOriginal) |
void |
setSecret(String secret) |
void |
setServer(int server) |
void |
setSize(char size) |
void |
setUrl(URI url) |
public static final String sizeSuffixes
public FlickrImage(long id, int farm, int server, String secret, char size, String extension)
id
- farm
- server
- secret
- size
- extension
- public static FlickrImage create(URL url)
url
- The URLpublic long getId()
public void setId(long id)
id
- the id to setpublic int getFarm()
public void setFarm(int farm)
farm
- the farm to setpublic int getServer()
public void setServer(int server)
server
- the server to setpublic char getSize()
public void setSize(char size)
size
- the size to setpublic boolean isOriginal()
public void setOriginal(boolean isOriginal)
isOriginal
- the isOriginal to setpublic File getLocalFile()
public void setLocalFile(File localFile)
localFile
- the localFile to setpublic MBFImage getImage() throws IOException
IOException