T - the type of things that map to cached images.
public class ImageProviderHttp<T> extends ImageProvider<T ,BufferedImageAndBytes >
| Constructor and Description |
|---|
ImageProviderHttp(UrlProvider
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImageAndBytes |
load(T thing)
This is the method that this ImageProvider will use to get an Image.
|
void |
setUserAgent(String
Set the user-agent to use during HTTP-requests.
|
addLoadListener, provide, removeLoadListener, stopRunningpublic ImageProviderHttp(UrlProvider<T> resolver, int nThreads, int nTries)
public void setUserAgent(StringuserAgent)
userAgent - the user agent to use.
public BufferedImageAndBytesload(T thing)
ImageProvider
load in interface
ImageSource<T,BufferedImageAndBytes>
load in class
ImageProvider<T,BufferedImageAndBytes>
thing - the thing that shall be loaded.