|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ddtek.xmlconverter.Conversion
public abstract class Conversion
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(javax.xml.transform.Source, javax.xml.transform.Result)
.
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
getConversionStatus()
,
ErrorHandler
or ErrorListener
interfaces
cancel()
,
A Conversion object implements ErrorHandler and ErrorListener as follows:
cancel(Throwable)
Three other methods can be used to start a conversion:
ConvertToXML.getXMLStreamReader(javax.xml.transform.Source)
ConvertToXML.getSAXSource(javax.xml.transform.Source)
ConvertFromXML.getXMLStreamWriter(javax.xml.transform.Result)
Constructor Summary | |
---|---|
Conversion()
|
Method Summary | |
---|---|
abstract void |
cancel()
Attempt to cancel a Conversion. |
abstract void |
cancel(Throwable t)
Attempt to cancel a conversion with an exception. |
abstract ConversionStatus |
getConversionStatus()
Get the current status of this Conversion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ErrorHandler |
---|
error, fatalError, warning |
Methods inherited from interface javax.xml.transform.ErrorListener |
---|
error, fatalError, warning |
Constructor Detail |
---|
public Conversion()
Method Detail |
---|
public abstract ConversionStatus getConversionStatus()
ConversionStatus
for this Conversion.public abstract void cancel()
public abstract void cancel(Throwable t)
t
- The exception which should be associated with the cancellation.cancel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |