|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.transform.sax.SAXResult
org.springframework.xml.transform.StaxResult
public class StaxResult
Implementation of the Result tagging interface for StAX writers. Can be constructed with a
XMLEventConsumer or a XMLStreamWriter.
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 SAXResult.getHandler() to parse an input source using an
XMLReader. Calling setHandler(org.xml.sax.ContentHandler) will result in
UnsupportedOperationExceptions.
XMLEventWriter,
XMLStreamWriter,
Transformer| Field Summary |
|---|
| Fields inherited from class javax.xml.transform.sax.SAXResult |
|---|
FEATURE |
| Fields inherited from interface javax.xml.transform.Result |
|---|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
| Constructor Summary | |
|---|---|
StaxResult(javax.xml.stream.XMLEventWriter eventWriter)
Constructs a new instance of the StaxResult with the specified XMLEventWriter. |
|
StaxResult(javax.xml.stream.XMLEventWriter eventWriter,
javax.xml.stream.XMLEventFactory eventFactory)
Constructs a new instance of the StaxResult with the specified XMLEventWriter and
XMLEventFactory. |
|
StaxResult(javax.xml.stream.XMLStreamWriter streamWriter)
Constructs a new instance of the StaxResult with the specified XMLStreamWriter. |
|
| Method Summary | |
|---|---|
javax.xml.stream.XMLEventWriter |
getXMLEventWriter()
Returns the XMLEventWriter used by this StaxResult. |
javax.xml.stream.XMLStreamWriter |
getXMLStreamWriter()
Returns the XMLStreamWriter used by this StaxResult. |
void |
setHandler(org.xml.sax.ContentHandler handler)
Throws a UnsupportedOperationException. |
| Methods inherited from class javax.xml.transform.sax.SAXResult |
|---|
getHandler, getLexicalHandler, getSystemId, setLexicalHandler, setSystemId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaxResult(javax.xml.stream.XMLStreamWriter streamWriter)
StaxResult with the specified XMLStreamWriter.
streamWriter - the XMLStreamWriter to write topublic StaxResult(javax.xml.stream.XMLEventWriter eventWriter)
StaxResult with the specified XMLEventWriter.
eventWriter - the XMLEventWriter to write to
public StaxResult(javax.xml.stream.XMLEventWriter eventWriter,
javax.xml.stream.XMLEventFactory eventFactory)
StaxResult with the specified XMLEventWriter and
XMLEventFactory.
eventWriter - the XMLEventWriter to write toeventFactory - the XMLEventFactory to use for creating events| Method Detail |
|---|
public javax.xml.stream.XMLEventWriter getXMLEventWriter()
XMLEventWriter used by this StaxResult. If this StaxResult was
created with an XMLStreamWriter, the result will be null.
StaxResult(javax.xml.stream.XMLEventWriter)public javax.xml.stream.XMLStreamWriter getXMLStreamWriter()
XMLStreamWriter used by this StaxResult. If this StaxResult
was created with an XMLEventConsumer, the result will be null.
StaxResult(javax.xml.stream.XMLStreamWriter)public void setHandler(org.xml.sax.ContentHandler handler)
UnsupportedOperationException.
setHandler in class javax.xml.transform.sax.SAXResultjava.lang.UnsupportedOperationException - always
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||