T - the type of object to be returned after getting image from File, URL or InputStreampublic interface ImageFactory<T>
| Modifier and Type | Method and Description |
|---|---|
T |
getImage(File file)
Retrieve the source through a
File object and transform it into T. |
T |
getImage(InputStream file)
Retrieve the source through an
InputStream object and transform it into T. |
T |
getImage(URL file)
Retrieve the source through a
URL object and transform it into T. |
T getImage(File file) throws IOException
File object and transform it into T.file - The source file.IOException - If the file I/O went wrong or couldn't transform
the source into a T object.T getImage(URL file) throws IOException
URL object and transform it into T.file - The source.IOException - If the I/O went wrong or couldn't transform
the source into a T object.T getImage(InputStream file) throws IOException
InputStream object and transform it into T.file - The source.IOException - If the I/O went wrong or couldn't transform
the source into a T object.Copyright © 2020. All rights reserved.