Spring Web Services Framework

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(Node node)
          Perform an operation on the node contained in a DOMResult.
 void saxResult(ContentHandler contentHandler, LexicalHandler lexicalHandler)
          Perform an operation on the ContentHandler and LexicalHandler contained in a SAXResult.
 void staxResult(XMLEventWriter eventWriter)
          Perform an operation on the XMLEventWriter contained in a JAXP 1.4 StAXResult or Spring StaxResult.
 void staxResult(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(Node node)
Perform an operation on the node contained in a DOMResult.

Parameters:
node - the node

saxResult

void saxResult(ContentHandler contentHandler,
               LexicalHandler lexicalHandler)
               throws IOException,
                      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
SAXException

staxResult

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

Parameters:
eventWriter - the writer
Throws:
XMLStreamException

staxResult

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

Parameters:
streamWriter - the writer
Throws:
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

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.