|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConvertToXML
An extension of the Converter
interface which specifies methods used
only in conversions from non-XML data to XML.
Method Summary | |
---|---|
SAXSource |
getSAXSource(Source source)
Get a SAXSource to read the converted data. |
javax.xml.stream.XMLStreamReader |
getXMLStreamReader(Source source)
Get an XMLStreamReader to read the converted data. |
Methods inherited from interface com.ddtek.xmlconverter.Converter |
---|
analyze, convert, convert, getConfiguration, getErrorHandler, getErrorListener, getOutputStream, setErrorHandler, setErrorListener |
Method Detail |
---|
javax.xml.stream.XMLStreamReader getXMLStreamReader(Source source) throws javax.xml.stream.XMLStreamException
XMLStreamReader
to read the converted data. This method starts the
conversion, but does not actually convert the data. Instead, it returns an
XMLStreamReader to the application. The data will be converted, in streaming
fashion, as needed by the application.
source
- A Source
object which specifies the source of non-XML data.
javax.xml.stream.XMLStreamException
ConverterResolver.getXMLStreamReader(String, String)
SAXSource getSAXSource(Source source) throws ConverterException
SAXSource
to read the converted data. This method does not start
the conversion, that occurs when the application calls
SAXSource.getXMLReader().setContentHandler() to register the ContentHandler
and then calls SAXSource.getXMLReader().parse(null)
source
- A Source
object specifying the source of non-XML data.
SAXSource
containing an XMLReader
.
ConverterException
- if an error occursConverterResolver.getSAXSource(String, String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |