|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coobird.thumbnailator.tasks.io.AbstractImageSource<File>
net.coobird.thumbnailator.tasks.io.FileImageSource
public class FileImageSource
An ImageSource which reads the source image from a file.
| Constructor Summary | |
|---|---|
FileImageSource(File sourceFile)
Instantiates a FileImageSource with the specified file as
the source image. |
|
FileImageSource(String sourceFilePath)
Instantiates a FileImageSource with the specified file as
the source image. |
|
| Method Summary | |
|---|---|
File |
getSource()
Returns the source file from which an image is read. |
BufferedImage |
read()
Retrieves the image from the source. |
| Methods inherited from class net.coobird.thumbnailator.tasks.io.AbstractImageSource |
|---|
getInputFormatName, setThumbnailParameter |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileImageSource(File sourceFile)
FileImageSource with the specified file as
the source image.
sourceFile - The source image file.
NullPointerException - If the image is null.public FileImageSource(String sourceFilePath)
FileImageSource with the specified file as
the source image.
sourceFilePath - The filepath of the source image file.
NullPointerException - If the image is null.| Method Detail |
|---|
public BufferedImage read()
throws IOException
ImageSource
IOException - When a problem occurs while reading or obtaining
the image.public File getSource()
File representation of the source file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||