|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.coobird.thumbnailator.tasks.io.AbstractImageSink<BufferedImage> net.coobird.thumbnailator.tasks.io.BufferedImageSink
public class BufferedImageSink
An ImageSink
which stores the resulting thumbnail to a
BufferedImage
.
Constructor Summary | |
---|---|
BufferedImageSink()
|
Method Summary | |
---|---|
BufferedImage |
getSink()
Returns the thumbnail. |
void |
setOutputFormatName(String format)
Sets the output format of the resulting image. |
void |
write(BufferedImage img)
Writes the resulting image to a destination. |
Methods inherited from class net.coobird.thumbnailator.tasks.io.AbstractImageSink |
---|
preferredOutputFormatName, setThumbnailParameter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferedImageSink()
Method Detail |
---|
public void write(BufferedImage img) throws IOException
ImageSink
write
in interface ImageSink<BufferedImage>
write
in class AbstractImageSink<BufferedImage>
img
- The image to write or store.
IOException
- When a problem occurs while writing or storing
the image.public BufferedImage getSink()
IllegalStateException
- If a thumbnail has not been stored to
this BufferedImageSink
yet.public void setOutputFormatName(String format)
ImageSink
For ImageSink
s which stores raw images, the format name specified
by this method may be ignored.
setOutputFormatName
in interface ImageSink<BufferedImage>
setOutputFormatName
in class AbstractImageSink<BufferedImage>
format
- File format with which to store the image.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |