public final class ImageReader extends Object
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
readImageFrom(String path)
Decodes the image in the file at the specified path.
|
public static BufferedImage readImageFrom(String path) throws IOException
path
- the path of the image to read.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–2019 AssertJ. All rights reserved.