Interface TraxUtils.ResultCallback

Enclosing class:
TraxUtils

public static interface TraxUtils.ResultCallback
Callback interface invoked on each sort of Result.
See Also:
  • Method Details

    • 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