|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
A Conversion object contains all the information needed during an ongoing conversion.
A conversion is initiated by creating a Converter object and then calling
Converter.convert.
The convert method returns a Conversion which actually controls the conversion process.
In some cases, the conversion has already completed when Converter.convert returns the
Conversion object; the Conversion object represents a completed
conversion.
When the convert source is a OutputStreamSource, a WriterSource,
or a SAXSource,
the conversion will not be complete and system resources will not be released
until all data has been delivered or the conversion
has been cancelled. The application can
isFinished(),
ErrorHandler or ErrorListener interfaces
cancel(),
A Conversion object implements ErrorHandler and ErrorListener as follows:
cancel(Exception)Converter.convert(Source, Result, ErrorListener), then warnings and errors
are reported to the ErrorListener given on the convert call. Otherwise, they are
written to System.err and processing continues.
| Method Summary | |
void |
cancel()
Attempt to cancel a Conversion. |
void |
cancel(Exception e)
Attempt to cancel a Conversion. |
boolean |
isFinished()
Return whether the Conversion has finished. |
| Methods inherited from interface org.xml.sax.ErrorHandler |
error, fatalError, warning |
| Methods inherited from interface javax.xml.transform.ErrorListener |
error, fatalError, warning |
| Method Detail |
public boolean isFinished()
convert was an OutputStreamSource,
a WriterSource, or a SAXSource,
then the conversion cannot finish until the
application has delivered all the data. isFinished() returns false
until all the data has been delivered, after which it returns true.
convert returns the
Conversion object and isFinished() always returns
true.
true if the conversion has finished; otherwise it returns false.public void cancel()
ConverterException to the conversion data source and conversion data consumer.
public void cancel(Exception e)
cancel(). The Exception e
is wrapped as a ConversionException or an IOException as needed and thrown to the conversion
data source and conversion data consumer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |