org.springframework.xml.transform
Interface TraxUtils.ResultCallback

Enclosing class:
TraxUtils

public static interface TraxUtils.ResultCallback

Callback interface invoked on each sort of Result.

See Also:
TraxUtils.doWithResult(Result, ResultCallback)

Method Summary
 void domResult(org.w3c.dom.Node node)
          Perform an operation on the node contained in a DOMResult.
 void saxResult(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ext.LexicalHandler lexicalHandler)
          Perform an operation on the ContentHandler and LexicalHandler contained in a SAXResult.
 void staxResult(javax.xml.stream.XMLEventWriter eventWriter)
          Perform an operation on the XMLEventWriter contained in a JAXP 1.4 StAXResult or Spring StaxResult.
 void staxResult(javax.xml.stream.XMLStreamWriter streamWriter)
          Perform an operation on the XMLStreamWriter contained in a JAXP 1.4 StAXResult or Spring StaxResult.
 void streamResult(OutputStream outputStream)
          Perform an operation on the OutputStream contained in a StreamResult.
 void streamResult(Writer writer)
          Perform an operation on the Writer contained in a StreamResult.
 

Method Detail

domResult

void domResult(org.w3c.dom.Node node)
Perform an operation on the node contained in a DOMResult.

Parameters:
node - the node

saxResult

void saxResult(org.xml.sax.ContentHandler contentHandler,
               org.xml.sax.ext.LexicalHandler lexicalHandler)
               throws IOException,
                      org.xml.sax.SAXException
Perform an operation on the ContentHandler and LexicalHandler contained in a SAXResult.

Parameters:
contentHandler - the content handler
lexicalHandler - the lexicalHandler, can be null
Throws:
IOException
org.xml.sax.SAXException

staxResult

void staxResult(javax.xml.stream.XMLEventWriter eventWriter)
                throws javax.xml.stream.XMLStreamException
Perform an operation on the XMLEventWriter contained in a JAXP 1.4 StAXResult or Spring StaxResult.

Parameters:
eventWriter - the writer
Throws:
javax.xml.stream.XMLStreamException

staxResult

void staxResult(javax.xml.stream.XMLStreamWriter streamWriter)
                throws javax.xml.stream.XMLStreamException
Perform an operation on the XMLStreamWriter contained in a JAXP 1.4 StAXResult or Spring StaxResult.

Parameters:
streamWriter - the writer
Throws:
javax.xml.stream.XMLStreamException

streamResult

void streamResult(OutputStream outputStream)
                  throws IOException
Perform an operation on the OutputStream contained in a StreamResult.

Parameters:
outputStream - the output stream
Throws:
IOException

streamResult

void streamResult(Writer writer)
                  throws IOException
Perform an operation on the Writer contained in a StreamResult.

Parameters:
writer - the writer
Throws:
IOException


Copyright © 2010. All Rights Reserved.