Package org.apache.pivot.wtk.media
Class Image.LoadTask
- java.lang.Object
-
- org.apache.pivot.util.concurrent.Task<V>
-
- org.apache.pivot.io.IOTask<Image>
-
- org.apache.pivot.wtk.media.Image.LoadTask
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Image
execute()
Synchronously executes the task.java.net.URL
getLocation()
-
Methods inherited from class org.apache.pivot.util.concurrent.Task
abort, execute, execute, getBackgroundThread, getExecutorService, getFault, getResult, getTimeout, isPending, setTimeout
-
-
-
-
Method Detail
-
getLocation
public java.net.URL getLocation()
-
execute
public Image execute() throws TaskExecutionException
Description copied from class:Task
Synchronously executes the task.- Specified by:
execute
in classTask<Image>
- Returns:
- The result of the task's execution.
- Throws:
TaskExecutionException
- If an error occurs while executing the task.
-
-