StAXSource (Java SE 9 & JDK 9 ) (original) (raw)


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 acceptSource as input.
StAXSources are consumed during processing and are not reusable.
Since:
1.6
See Also:
JSR 173: Streaming API for XML, XMLStreamReader, XMLEventReader

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.