static final class PrismImageLoader2.AsyncImageLoader extends AbstractRemoteResource<PrismImageLoader2>
AbstractRemoteResource.ProgressInputStream
Modifier and Type | Field and Description |
---|---|
private java.security.AccessControlContext |
acc |
private static java.util.concurrent.ExecutorService |
BG_LOADING_EXECUTOR |
(package private) int |
height |
(package private) boolean |
preserveRatio |
(package private) boolean |
smooth |
(package private) int |
width |
fileSize, method, outboundContent, url
future, listener
Constructor and Description |
---|
AsyncImageLoader(AsyncOperationListener<PrismImageLoader2> listener,
java.lang.String url,
int width,
int height,
boolean preserveRatio,
boolean smooth) |
Modifier and Type | Method and Description |
---|---|
PrismImageLoader2 |
call() |
private static java.util.concurrent.ExecutorService |
createExecutor() |
protected PrismImageLoader2 |
processStream(java.io.InputStream stream) |
void |
start() |
getResponseHeader, setHeader
addProgress, cancel, getProgressGranularity, getProgressMax, isCancelled, isDone, notifyProgress, setProgressGranularity, setProgressMax
private static final java.util.concurrent.ExecutorService BG_LOADING_EXECUTOR
private final java.security.AccessControlContext acc
int width
int height
boolean preserveRatio
boolean smooth
public AsyncImageLoader(AsyncOperationListener<PrismImageLoader2> listener, java.lang.String url, int width, int height, boolean preserveRatio, boolean smooth)
protected PrismImageLoader2 processStream(java.io.InputStream stream) throws java.io.IOException
processStream
in class AbstractRemoteResource<PrismImageLoader2>
java.io.IOException
public PrismImageLoader2 call() throws java.io.IOException
call
in interface java.util.concurrent.Callable<PrismImageLoader2>
call
in class AbstractRemoteResource<PrismImageLoader2>
java.io.IOException
public void start()
start
in interface AsyncOperation
start
in class AbstractAsyncOperation<PrismImageLoader2>
private static java.util.concurrent.ExecutorService createExecutor()