org.fest.assertions.util
Class ImageReader
java.lang.Object
org.fest.assertions.util.ImageReader
public final class ImageReader
- extends Object
Reads an image from a file.
- Author:
- Yvonne Wang
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readImageFrom
public static BufferedImage readImageFrom(String path)
throws IOException
- Decodes the image in the file at the specified path.
- Parameters:
path
- the path of the image to read.
- Returns:
- the read image.
- Throws:
NullPointerException
- if the given path is null
.
IllegalArgumentException
- if the given path does not belong to a file.
IOException
- if an error occurs during reading.
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.