|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.coobird.thumbnailator.tasks.io.AbstractImageSource<InputStream>
net.coobird.thumbnailator.tasks.io.InputStreamImageSource
public class InputStreamImageSource
An ImageSource
which uses an InputStream
to read the
source image.
Constructor Summary | |
---|---|
InputStreamImageSource(InputStream is)
Instantiates an InputStreamImageSource with the
InputStream which will be used to read the source image. |
Method Summary | |
---|---|
InputStream |
getSource()
Returns the source from which the image is read or retrieved. |
BufferedImage |
read()
Retrieves the image from the source. |
void |
setThumbnailParameter(ThumbnailParameter param)
Sets the ThumbnailParameter from which to retrieve parameters
to use when retrieving the image. |
Methods inherited from class net.coobird.thumbnailator.tasks.io.AbstractImageSource |
---|
getInputFormatName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStreamImageSource(InputStream is)
InputStreamImageSource
with the
InputStream
which will be used to read the source image.
is
- The InputStream
which is to be used to obtain
the source image.
NullPointerException
- If the InputStream
is
null
.Method Detail |
---|
public void setThumbnailParameter(ThumbnailParameter param)
ImageSource
ThumbnailParameter
from which to retrieve parameters
to use when retrieving the image.
setThumbnailParameter
in interface ImageSource<InputStream>
setThumbnailParameter
in class AbstractImageSource<InputStream>
param
- The ThumbnailParameter
with image
reading parameters.public BufferedImage read() throws IOException
ImageSource
IOException
- When a problem occurs while reading or obtaining
the image.public InputStream getSource()
ImageSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |