@Service(value=ImageReader.class) @Property(name="service.ranking", intValue=0, propertyPrivate=false) public class ImageIOImageReader extends Object implements ImageReader
| Constructor and Description |
|---|
ImageIOImageReader() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
getBufferedImage(File file)
Creates a
BufferedImage from an File. |
BufferedImage |
getBufferedImage(InputStream in)
Creates a
BufferedImage from an InputStream. |
BufferedImage |
getBufferedImage(URL url)
Creates a
BufferedImage from a URL. |
public BufferedImage getBufferedImage(File file) throws IOException
ImageReaderBufferedImage from an File.getBufferedImage in interface ImageReaderfile - the image file.BufferedImage containing the data of the specified
image.IOExceptionpublic BufferedImage getBufferedImage(InputStream in) throws IOException
ImageReaderBufferedImage from an InputStream.getBufferedImage in interface ImageReaderin - a stream from which the image data can be read.BufferedImage containing the data of the specified
image.IOExceptionpublic BufferedImage getBufferedImage(URL url) throws IOException
ImageReaderBufferedImage from a URL.getBufferedImage in interface ImageReaderurl - the location of the image described as a URL.BufferedImage containing the data of the specified
image.IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.