org.apache.pivot.wtk.media
Class Image.LoadTask

java.lang.Object
  extended by org.apache.pivot.util.concurrent.Task<V>
      extended by org.apache.pivot.io.IOTask<Image>
          extended by org.apache.pivot.wtk.media.Image.LoadTask
Enclosing class:
Image

public static class Image.LoadTask
extends org.apache.pivot.io.IOTask<Image>

Task that executes an image load operation.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.io.IOTask
org.apache.pivot.io.IOTask.MonitoredInputStream, org.apache.pivot.io.IOTask.MonitoredOutputStream
 
Field Summary
 
Fields inherited from class org.apache.pivot.io.IOTask
bytesReceived, bytesSent
 
Fields inherited from class org.apache.pivot.util.concurrent.Task
abort, DEFAULT_EXECUTOR_SERVICE, timeout
 
Constructor Summary
Image.LoadTask(URL location)
           
Image.LoadTask(URL location, ExecutorService executorService)
           
 
Method Summary
 Image execute()
           
 URL getLocation()
           
 
Methods inherited from class org.apache.pivot.util.concurrent.Task
abort, execute, execute, getExecutorService, getFault, getResult, getTimeout, isPending, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image.LoadTask

public Image.LoadTask(URL location)

Image.LoadTask

public Image.LoadTask(URL location,
                      ExecutorService executorService)
Method Detail

getLocation

public URL getLocation()

execute

public Image execute()
              throws org.apache.pivot.util.concurrent.TaskExecutionException
Specified by:
execute in class org.apache.pivot.util.concurrent.Task<Image>
Throws:
org.apache.pivot.util.concurrent.TaskExecutionException