|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The destination class to which the thumbnail is stored
or written.public interface ImageSink<T>
An interface to be implemented by classes which stores the image resulting from a thumbnail generation task.
| Method Summary | |
|---|---|
T |
getSink()
Returns the destination to which the thumbnail will be stored or written. |
String |
preferredOutputFormatName()
Returns the output format to use from information provided for the output image. |
void |
setOutputFormatName(String format)
Sets the output format of the resulting image. |
void |
setThumbnailParameter(ThumbnailParameter param)
Sets the ThumbnailParameter from which to retrieve parameters
to use when storing the image. |
void |
write(BufferedImage img)
Writes the resulting image to a destination. |
| Method Detail |
|---|
void write(BufferedImage img)
throws IOException
img - The image to write or store.
IOException - When a problem occurs while writing or storing
the image.
NullPointerException - If the image is null.void setOutputFormatName(String format)
For ImageSinks which stores raw images, the format name specified
by this method may be ignored.
format - File format with which to store the image.void setThumbnailParameter(ThumbnailParameter param)
ThumbnailParameter from which to retrieve parameters
to use when storing the image.
param - The ThumbnailParameter with image
writing parameters.String preferredOutputFormatName()
If the output format cannot be determined, then
ThumbnailParameter.ORIGINAL_FORMAT should be returned.
T getSink()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||