Implementation of the Result tagging interface for StAX writers. Can be constructed with a
XMLEventConsumer or a XMLStreamWriter .
This class is necessary because there is no implementation of Source for StaxReaders in JAXP 1.3. There
will be a StaxResult in JAXP 1.4 (JDK 1.6), and by the time that version is available, this class will
probably be deprecated.
Even though StaxResult extends from SAXResult , calling the methods of
SAXResult is not supported. In general, the only supported operation on this class is
to use the ContentHandler obtained via
StaxResult.getHandler() to parse an input source using an
XMLReader . Calling
StaxResult.setHandler(org.xml.sax.ContentHandler) will result in
UnsupportedOperationException s.
author: Arjen Poutsma See Also: XMLEventWriter See Also: XMLStreamWriter See Also: javax.xml.transform.Transformer since: 1.0.0 |