public interface ImageReader
BufferedImage
s.
By providing a custom service it is easy to extend the platform's image
processing capabilities with new image formats or use alternate processing
libraries for reading image data.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 . |
BufferedImage getBufferedImage(File file) throws IOException
BufferedImage
from an File
.file
- the image file.BufferedImage
containing the data of the specified
image.IOException
BufferedImage getBufferedImage(InputStream in) throws IOException
BufferedImage
from an InputStream
.in
- a stream from which the image data can be read.BufferedImage
containing the data of the specified
image.IOException
BufferedImage getBufferedImage(URL url) throws IOException
BufferedImage
from a URL
.url
- the location of the image described as a URL.BufferedImage
containing the data of the specified
image.IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.