|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectexamples.postcard.PostcardWebserviceImpl
| Field Summary | |
private int |
BUF_SIZE
The size of the buffer used to load images. |
static int |
DEFAULT_IMAGE_HEIGHT
The heigth of the default image. |
static int |
DEFAULT_IMAGE_WIDTH
The width of the default image. |
private BufferedImage |
image_
The postcard image of this service. |
private String |
location_
The host location. |
| Fields inherited from interface examples.postcard.PostcardWebservice |
PUBLISH_KEY |
| Constructor Summary | |
PostcardWebserviceImpl()
Constructor. |
|
| Method Summary | |
Calendar |
getDate()
|
byte[] |
getJpegPostcard()
|
byte[] |
getJpegPostcard(String name)
|
String |
getLocation()
|
void |
setImage(File file)
Allows to read the image to be used as postcard from a file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_IMAGE_WIDTH
public static final int DEFAULT_IMAGE_HEIGHT
private BufferedImage image_
private String location_
private final int BUF_SIZE
| Constructor Detail |
public PostcardWebserviceImpl()
image is per default
initialized with a white picture.
| Method Detail |
public void setImage(File file)
PostcardService.
IOException - when the file could not be readpublic byte[] getJpegPostcard()
getJpegPostcard in interface PostcardWebservicepublic byte[] getJpegPostcard(String name)
getJpegPostcard in interface PostcardWebservicepublic String getLocation()
getLocation in interface PostcardWebservicepublic Calendar getDate()
getDate in interface PostcardWebservice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||