Package org.geotools.xml.transform
Class TransformerBase.Task
- Object
- 
- Task
 
- 
- All Implemented Interfaces:
- Runnable
 - Enclosing class:
- TransformerBase
 
 public class TransformerBase.Task extends Object implements Runnable 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 SummaryConstructors Constructor Description Task(Object object, StreamResult result)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()Calls to the underlying translator to abort any calls to translation.booleancheckError()Did an error occur?ExceptiongetError()Get any error which occurred.voidrun()Perform the translation.
 
- 
- 
- 
Constructor Detail- 
Taskpublic Task(Object object, StreamResult result) throws TransformerException - Throws:
- TransformerException
 
 
- 
 - 
Method Detail- 
checkErrorpublic boolean checkError() Did an error occur?- Returns:
- true if one did, false otherwise.
 
 - 
getErrorpublic Exception getError() Get any error which occurred.- Returns:
- An Exception if checkError returns true, null otherwise.
 
 - 
abortpublic void abort() Calls to the underlying translator to abort any calls to translation. Should return silently regardless of outcome.
 
- 
 
-