| |
|
| java.lang.Object javax.xml.transform.sax.SAXResult org.springframework.xml.transform.StaxResult
StaxResult | public class StaxResult extends SAXResult (Code) | | 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 |
Constructor Summary | |
public | StaxResult(XMLStreamWriter streamWriter) Constructs a new instance of the StaxResult with the specified XMLStreamWriter . | public | StaxResult(XMLEventWriter eventWriter) Constructs a new instance of the StaxResult with the specified XMLEventWriter . | public | StaxResult(XMLEventWriter eventWriter, XMLEventFactory eventFactory) Constructs a new instance of the StaxResult with the specified XMLEventWriter and
XMLEventFactory . |
StaxResult | public StaxResult(XMLStreamWriter streamWriter)(Code) | | Constructs a new instance of the StaxResult with the specified XMLStreamWriter .
Parameters: streamWriter - the XMLStreamWriter to write to |
StaxResult | public StaxResult(XMLEventWriter eventWriter)(Code) | | Constructs a new instance of the StaxResult with the specified XMLEventWriter .
Parameters: eventWriter - the XMLEventWriter to write to |
StaxResult | public StaxResult(XMLEventWriter eventWriter, XMLEventFactory eventFactory)(Code) | | Constructs a new instance of the StaxResult with the specified XMLEventWriter and
XMLEventFactory .
Parameters: eventWriter - the XMLEventWriter to write to Parameters: eventFactory - the XMLEventFactory to use for creating events |
|
|
|