Class FileImageSource.UninitializedImageSource
- java.lang.Object
-
- net.coobird.thumbnailator.tasks.io.AbstractImageSource<java.lang.Void>
-
- net.coobird.thumbnailator.tasks.io.FileImageSource.UninitializedImageSource
-
- All Implemented Interfaces:
ImageSource<java.lang.Void>
- Enclosing class:
- FileImageSource
private static class FileImageSource.UninitializedImageSource extends AbstractImageSource<java.lang.Void>
Temporary placeholderImageSourcewhich will be used before theread()method is used. Basically a way to use the implementation of theAbstractImageSourcewithout having to instantiate aInputStreamImageSourceobject before needed.
-
-
Field Summary
-
Fields inherited from class net.coobird.thumbnailator.tasks.io.AbstractImageSource
hasReadInput, inputFormatName, param
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUninitializedImageSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.VoidgetSource()Returns the source from which the image is read or retrieved.java.awt.image.BufferedImageread()Retrieves the image from the source.-
Methods inherited from class net.coobird.thumbnailator.tasks.io.AbstractImageSource
finishedReading, getInputFormatName, setThumbnailParameter
-
-
-
-
Method Detail
-
read
public java.awt.image.BufferedImage read() throws java.io.IOExceptionDescription copied from interface:ImageSourceRetrieves the image from the source.- Returns:
- The image.
- Throws:
java.io.IOException- When a problem occurs while reading or obtaining the image.
-
getSource
public java.lang.Void getSource()
Description copied from interface:ImageSourceReturns the source from which the image is read or retrieved.- Returns:
- The source of the image.
-
-