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 result(String systemId)
          Perform an operation on the system identifier contained in any Result.
 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)
               throws Exception
Perform an operation on the node contained in a DOMResult.

Parameters:
node - the node
Throws:
Exception

saxResult

void saxResult(ContentHandler contentHandler,
               LexicalHandler lexicalHandler)
               throws Exception
Perform an operation on the ContentHandler and LexicalHandler contained in a SAXResult.

Parameters:
contentHandler - the content handler
lexicalHandler - the lexicalHandler, can be null
Throws:
Exception

staxResult

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

Parameters:
eventWriter - the writer
Throws:
Exception

staxResult

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

Parameters:
streamWriter - the writer
Throws:
Exception

streamResult

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

Parameters:
outputStream - the output stream
Throws:
Exception

streamResult

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

Parameters:
writer - the writer
Throws:
Exception

result

void result(String systemId)
            throws Exception
Perform an operation on the system identifier contained in any Result.

Parameters:
systemId - the system identifier
Throws:
Exception

Spring Web Services Framework

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