org.assertj.swing.util
Class ImageReader
java.lang.Object
org.assertj.swing.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 © 2014–2015 AssertJ. All rights reserved.