Package org.geotools.xml.transform
Class TransformerBase.Task
Object
Task
- All Implemented Interfaces:
Runnable
- Enclosing class:
- TransformerBase
A wrapper for a Transformation Task. Support aborting any translation activity. Because the Task is Runnable,
exceptions must be checked asynchronously by using the checkError and getError methods.
-
Constructor Details
-
Task
- Throws:
TransformerException
-
-
Method Details
-
checkError
public boolean checkError()Did an error occur?- Returns:
- true if one did, false otherwise.
-
getError
Get any error which occurred.- Returns:
- An Exception if checkError returns true, null otherwise.
-
abort
public void abort()Calls to the underlying translator to abort any calls to translation. Should return silently regardless of outcome. -
run
public void run()Perform the translation. Exceptions are captured and can be obtained through the checkError and getError methods.
-