|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coobird.thumbnailator.tasks.io.AbstractImageSink<T>
public abstract class AbstractImageSink<T>
An abstract class for ImageSinks.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.coobird.thumbnailator.tasks.io.ImageSink |
|---|
getSink |
| Method Detail |
|---|
public void setOutputFormatName(String format)
ImageSink
For ImageSinks which stores raw images, the format name specified
by this method may be ignored.
setOutputFormatName in interface ImageSink<T>format - File format with which to store the image.public void setThumbnailParameter(ThumbnailParameter param)
ImageSinkThumbnailParameter from which to retrieve parameters
to use when storing the image.
setThumbnailParameter in interface ImageSink<T>param - The ThumbnailParameter with image
writing parameters.
public void write(BufferedImage img)
throws IOException
ImageSink
write in interface ImageSink<T>img - The image to write or store.
IOException - When a problem occurs while writing or storing
the image.public String preferredOutputFormatName()
ImageSinkReturns the output format to use from information provided for the output image.
If the output format cannot be determined, then
ThumbnailParameter.ORIGINAL_FORMAT should be returned.
preferredOutputFormatName in interface ImageSink<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||