Interface TraxUtils.SourceCallback

Enclosing class:
TraxUtils

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

    • domSource

      void domSource(Node node) throws Exception
      Perform an operation on the node contained in a DOMSource.
      Parameters:
      node - the node
      Throws:
      Exception
    • saxSource

      void saxSource(XMLReader reader, InputSource inputSource) throws Exception
      Perform an operation on the XMLReader and InputSource contained in a SAXSource.
      Parameters:
      reader - the reader, can be null
      inputSource - the input source, can be null
      Throws:
      Exception
    • staxSource

      void staxSource(XMLEventReader eventReader) throws Exception
      Perform an operation on the XMLEventReader contained in a JAXP 1.4 StAXSource or Spring StaxSource.
      Parameters:
      eventReader - the reader
      Throws:
      Exception
    • staxSource

      void staxSource(XMLStreamReader streamReader) throws Exception
      Perform an operation on the XMLStreamReader contained in a JAXP 1.4 StAXSource or Spring StaxSource.
      Parameters:
      streamReader - the reader
      Throws:
      Exception
    • streamSource

      void streamSource(InputStream inputStream) throws Exception
      Perform an operation on the InputStream contained in a StreamSource.
      Parameters:
      inputStream - the input stream
      Throws:
      Exception
    • streamSource

      void streamSource(Reader reader) throws Exception
      Perform an operation on the Reader contained in a StreamSource.
      Parameters:
      reader - the reader
      Throws:
      Exception
    • source

      void source(String systemId) throws Exception
      Perform an operation on the system identifier contained in any Source.
      Parameters:
      systemId - the system identifier
      Throws:
      Exception