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 IOTask<Image>

Task that executes an image load operation.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.io.IOTask
IOTask.MonitoredInputStream, 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()
          Synchronously executes the task.
 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 TaskExecutionException
Description copied from class: Task
Synchronously executes the task.

Specified by:
execute in class Task<Image>
Returns:
The result of the task's execution.
Throws:
TaskExecutionException - If an error occurs while executing the task.