org.springframework.xml.transform
Interface TraxUtils.SourceCallback

Enclosing class:
TraxUtils

public static interface TraxUtils.SourceCallback

Callback interface invoked on each sort of Source.

See Also:
TraxUtils.doWithSource(Source, SourceCallback)

Method Summary
 void domSource(org.w3c.dom.Node node)
          Perform an operation on the node contained in a DOMSource.
 void saxSource(org.xml.sax.XMLReader reader, org.xml.sax.InputSource inputSource)
          Perform an operation on the XMLReader and InputSource contained in a SAXSource.
 void staxSource(javax.xml.stream.XMLEventReader eventReader)
          Perform an operation on the XMLEventReader contained in a JAXP 1.4 StAXSource or Spring StaxSource.
 void staxSource(javax.xml.stream.XMLStreamReader streamReader)
          Perform an operation on the XMLStreamReader contained in a JAXP 1.4 StAXSource or Spring StaxSource.
 void streamSource(java.io.InputStream inputStream)
          Perform an operation on the InputStream contained in a StreamSource.
 void streamSource(java.io.Reader reader)
          Perform an operation on the Reader contained in a StreamSource.
 

Method Detail

domSource

void domSource(org.w3c.dom.Node node)
               throws java.lang.Exception
Perform an operation on the node contained in a DOMSource.

Parameters:
node - the node
Throws:
java.lang.Exception

saxSource

void saxSource(org.xml.sax.XMLReader reader,
               org.xml.sax.InputSource inputSource)
               throws java.lang.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:
java.lang.Exception

staxSource

void staxSource(javax.xml.stream.XMLEventReader eventReader)
                throws java.lang.Exception
Perform an operation on the XMLEventReader contained in a JAXP 1.4 StAXSource or Spring StaxSource.

Parameters:
eventReader - the reader
Throws:
java.lang.Exception

staxSource

void staxSource(javax.xml.stream.XMLStreamReader streamReader)
                throws java.lang.Exception
Perform an operation on the XMLStreamReader contained in a JAXP 1.4 StAXSource or Spring StaxSource.

Parameters:
streamReader - the reader
Throws:
java.lang.Exception

streamSource

void streamSource(java.io.InputStream inputStream)
                  throws java.lang.Exception
Perform an operation on the InputStream contained in a StreamSource.

Parameters:
inputStream - the input stream
Throws:
java.lang.Exception

streamSource

void streamSource(java.io.Reader reader)
                  throws java.lang.Exception
Perform an operation on the Reader contained in a StreamSource.

Parameters:
reader - the reader
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.