Module java.xml

Class StAXSource

java.lang.Object
javax.xml.transform.stax.StAXSource
All Implemented Interfaces:
Source

public class StAXSource extends Object implements Source

Acts as a holder for an XML Source in the form of a StAX reader,i.e. XMLStreamReader or XMLEventReader. StAXSource can be used in all cases that accept a Source, e.g. Transformer, Validator which accept Source as input.

StAXSources are consumed during processing and are not reusable.

Since:
1.6
See Also: