|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.coobird.thumbnailator.tasks.io.AbstractImageSource<URL> net.coobird.thumbnailator.tasks.io.URLImageSource
public class URLImageSource
An ImageSource
which retrieves a source image from a URL.
Constructor Summary | |
---|---|
URLImageSource(String url)
Instantiates an URLImageSource with the URL from which the
source image should be retrieved from. |
|
URLImageSource(String url,
Proxy proxy)
Instantiates an URLImageSource with the URL from which the
source image should be retrieved from, along with the proxy to use
to connect to the aforementioned URL. |
|
URLImageSource(URL url)
Instantiates an URLImageSource with the URL from which the
source image should be retrieved from. |
|
URLImageSource(URL url,
Proxy proxy)
Instantiates an URLImageSource with the URL from which the
source image should be retrieved from, along with the proxy to use
to connect to the aforementioned URL. |
Method Summary | |
---|---|
Proxy |
getProxy()
Returns the proxy to use when connecting to the URL to retrieve the source image. |
URL |
getSource()
Returns the URL from which the source image is retrieved from. |
BufferedImage |
read()
Retrieves the image from the source. |
Methods inherited from class net.coobird.thumbnailator.tasks.io.AbstractImageSource |
---|
getInputFormatName, setThumbnailParameter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLImageSource(URL url)
URLImageSource
with the URL from which the
source image should be retrieved from.
url
- URL to the source image.
NullPointerException
- If the URL is nullpublic URLImageSource(String url) throws MalformedURLException
URLImageSource
with the URL from which the
source image should be retrieved from.
url
- URL to the source image.
NullPointerException
- If the URL is null
MalformedURLException
- If the URL is not valid.public URLImageSource(URL url, Proxy proxy)
URLImageSource
with the URL from which the
source image should be retrieved from, along with the proxy to use
to connect to the aforementioned URL.
url
- URL to the source image.proxy
- Proxy to use to connect to the URL.
NullPointerException
- If the URL and or the proxy is nullpublic URLImageSource(String url, Proxy proxy) throws MalformedURLException
URLImageSource
with the URL from which the
source image should be retrieved from, along with the proxy to use
to connect to the aforementioned URL.
url
- URL to the source image.proxy
- Proxy to use to connect to the URL.
NullPointerException
- If the URL and or the proxy is null
MalformedURLException
- If the URL is not valid.Method Detail |
---|
public BufferedImage read() throws IOException
ImageSource
IOException
- When a problem occurs while reading or obtaining
the image.public URL getSource()
public Proxy getProxy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |