|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.common.lib.utils.ImageUtils
public final class ImageUtils
A utility class for retrieving image datum.
| Constructor Summary | |
|---|---|
ImageUtils()
Default constructor. |
|
| Method Summary | |
|---|---|
byte[] |
getImageDataFromFile(String fileName)
Gets the image data byte[] located in fileName. |
byte[] |
getImageDataFromUrl(String url)
Gets the image data byte[] located at url or
null if the image could not be loaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageUtils()
| Method Detail |
|---|
public byte[] getImageDataFromFile(String fileName)
throws IOException
byte[] located in fileName.
fileName - the image file to load
byte[] located in fileName
IOException - if the image could not be read
public byte[] getImageDataFromUrl(String url)
throws IOException
byte[] located at url or
null if the image could not be loaded.
url - the image URL to load
byte[] located at url
IOException - if the image could not be read from the URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||