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(InputStream inputStream)
          Perform an operation on the InputStream contained in a StreamSource.
 void streamSource(Reader reader)
          Perform an operation on the Reader contained in a StreamSource.
 

Method Detail

domSource

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

Parameters:
node - the node

saxSource

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

staxSource

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

Parameters:
eventReader - the reader
Throws:
javax.xml.stream.XMLStreamException

staxSource

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

Parameters:
streamReader - the reader
Throws:
javax.xml.stream.XMLStreamException

streamSource

void streamSource(InputStream inputStream)
                  throws IOException
Perform an operation on the InputStream contained in a StreamSource.

Parameters:
inputStream - the input stream
Throws:
IOException

streamSource

void streamSource(Reader reader)
                  throws IOException
Perform an operation on the Reader contained in a StreamSource.

Parameters:
reader - the reader
Throws:
IOException


Copyright © 2010. All Rights Reserved.