net.coobird.thumbnailator.tasks.io
Class InputStreamImageSource
java.lang.Object
  
net.coobird.thumbnailator.tasks.io.AbstractImageSource<InputStream>
      
net.coobird.thumbnailator.tasks.io.InputStreamImageSource
- All Implemented Interfaces: 
 - ImageSource<InputStream>
 
public class InputStreamImageSource
- extends AbstractImageSource<InputStream>
 
An ImageSource which uses an InputStream to read the
 source image.
- Author:
 
  - coobird
 
 
 
 
 
InputStreamImageSource
public InputStreamImageSource(InputStream is)
- Instantiates an 
InputStreamImageSource with the 
 InputStream which will be used to read the source image.
- Parameters:
 is - The InputStream which is to be used to obtain
                                        the source image.
- Throws:
 NullPointerException - If the InputStream is 
                                                                        null.
 
read
public BufferedImage read()
                   throws IOException
- Description copied from interface: 
ImageSource 
- Retrieves the image from the source.
- Returns:
 - The image.
 - Throws:
 IOException - When a problem occurs while reading or obtaining
                                                        the image.
 
 
getSource
public InputStream getSource()
- Description copied from interface: 
ImageSource 
- Returns the source from which the image is read or retrieved.
- Returns:
 - The source of the image.