|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coobird.thumbnailator.tasks.ThumbnailTask<S,D>
S - The class from which the image is retrieved or read.D - The class to which the thumbnail is stored or written.public abstract class ThumbnailTask<S,D>
This class is used by ThumbnailTask implementations which is used
when creating thumbnails from external sources and destinations.
If the image handled by a ThumbnailTask contains multiple images,
only the first image will be read by the read() method. Any
subsequent images will be ignored.
| Method Summary | |
|---|---|
abstract D |
getDestination()
Returns the destination to which the thumbnail is stored or written. |
ThumbnailParameter |
getParam()
Returns the ThumbnailParameter for this ThumbnailTask,
used when performing a thumbnail generation operation. |
abstract S |
getSource()
Returns the source from which the source image is retrieved or read. |
abstract BufferedImage |
read()
Reads a source image. |
abstract void |
write(BufferedImage img)
Writes the thumbnail to the destination. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract BufferedImage read()
throws IOException
IOException - Thrown when an I/O problem occurs when reading
from the image source.
public abstract void write(BufferedImage img)
throws IOException
img - The image to write.
UnsupportedFormatException - When an image file which is to be
read or written is unsupported.
IOException - Thrown when an I/O problem occurs when writing the
image.public ThumbnailParameter getParam()
ThumbnailParameter for this ThumbnailTask,
used when performing a thumbnail generation operation.
public abstract S getSource()
public abstract D getDestination()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||