public class ImageCollector extends Object implements Callable<ImageCollector>
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE |
protected nl.b3p.commons.services.HttpClientConfigured |
client |
static int |
COMPLETED |
static int |
ERROR |
static int |
NEW |
protected String |
preLog |
static int |
WARNING |
| Constructor and Description |
|---|
ImageCollector(ImageManager manager,
CombineImageUrl ciu,
nl.b3p.commons.services.HttpClientConfigured client) |
| Modifier and Type | Method and Description |
|---|---|
ImageCollector |
call() |
void |
dispose()
Call this after clearing all references retrieved from getBufferedImage() if
you still keep referencing this ImageCollector for some reason.
|
protected void |
downloadImage(String url) |
BufferedImage |
getBufferedImage()
Caller MUST DIRECTLY CALL dispose() after use.
|
CombineImageUrl |
getCombinedImageUrl() |
ImageManager |
getManager() |
int |
getStatus() |
protected final String preLog
public static final int NEW
public static final int ACTIVE
public static final int COMPLETED
public static final int WARNING
public static final int ERROR
protected nl.b3p.commons.services.HttpClientConfigured client
public ImageCollector(ImageManager manager, CombineImageUrl ciu, nl.b3p.commons.services.HttpClientConfigured client)
public ImageCollector call() throws Exception
call in interface Callable<ImageCollector>Exceptionpublic void dispose()
public BufferedImage getBufferedImage() throws Exception
IOException - if an exception occurs reading the downloaded imageExceptionpublic int getStatus()
public CombineImageUrl getCombinedImageUrl()
public ImageManager getManager()
Copyright © 2016. All rights reserved.