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, timeout
 
Constructor Summary
Image.LoadTask(URL url)
           
Image.LoadTask(URL url, Dispatcher dispatcher)
           
 
Method Summary
 Image execute()
          Synchronously executes the task.
 
Methods inherited from class org.apache.pivot.util.concurrent.Task
abort, execute, getDispatcher, 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 url)

Image.LoadTask

public Image.LoadTask(URL url,
                      Dispatcher dispatcher)
Method Detail

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.