org.firepick
public class FireREST extends Object
| Constructor and Description |
|---|
FireREST() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
errorImage(String... lines)
Return an red image with the given text auto-sized to fit the current imageWidthximageHeight
|
BufferedImage |
getImage(URL url)
Return image from given URL.
|
Point |
getImageSize()
Return image dimensions of last retrieved image
|
JSONResult |
getJSON(File file)
Load json from given file resource.
|
JSONResult |
getJSON(URL url)
HTTP GET json from given URL resource.
|
FireREST |
withTimeout(int msTimeout) |
public FireREST withTimeout(int msTimeout)
public Point getImageSize()
public BufferedImage errorImage(String... lines)
lines - one or more lines of textpublic BufferedImage getImage(URL url)
public JSONResult getJSON(File file)
public JSONResult getJSON(URL url)
Copyright © 2014. All rights reserved.