declare namespace javax { namespace xml { namespace transform { namespace stax { /** *

Acts as a holder for an XML {@link Result} in the * form of a StAX writer,i.e. * {@link XMLStreamWriter} or {@link XMLEventWriter}. * StAXResult can be used in all cases that accept * a Result, e.g. {@link javax.xml.transform.Transformer}, * {@link javax.xml.validation.Validator} which accept * Result as input. * @author Neeraj Bajaj * @author Jeff Suttor * @see * JSR 173: Streaming API for XML * @see XMLStreamWriter * @see XMLEventWriter * @since 1.6 */ // @ts-ignore class StAXResult extends java.lang.Object implements javax.xml.transform.Result { /** *

Creates a new instance of a StAXResult * by supplying an {@link XMLEventWriter}.

*

XMLEventWriter must be a * non-null reference.

* @param xmlEventWriter XMLEventWriter used to create * this StAXResult. * @throws IllegalArgumentException If xmlEventWriter == * null. */ // @ts-ignore constructor(xmlEventWriter: javax.xml.stream.XMLEventWriter) /** *

Creates a new instance of a StAXResult * by supplying an {@link XMLStreamWriter}.

*

XMLStreamWriter must be a * non-null reference.

* @param xmlStreamWriter XMLStreamWriter used to create * this StAXResult. * @throws IllegalArgumentException If xmlStreamWriter == * null. */ // @ts-ignore constructor(xmlStreamWriter: javax.xml.stream.XMLStreamWriter) /** * If {@link javax.xml.transform.TransformerFactory#getFeature(String name)} * returns true when passed this value as an argument, * the Transformer supports Result output of this type. */ // @ts-ignore public static readonly FEATURE: java.lang.String | string /** *

Get the XMLEventWriter used by this * StAXResult.

*

XMLEventWriter will be null * if this StAXResult was created with a * XMLStreamWriter.

* @return XMLEventWriter used by this * StAXResult. */ // @ts-ignore public getXMLEventWriter(): javax.xml.stream.XMLEventWriter /** *

Get the XMLStreamWriter used by this * StAXResult.

*

XMLStreamWriter will be null * if this StAXResult was created with a * XMLEventWriter.

* @return XMLStreamWriter used by this * StAXResult. */ // @ts-ignore public getXMLStreamWriter(): javax.xml.stream.XMLStreamWriter /** *

In the context of a StAXResult, it is not appropriate * to explicitly set the system identifier. * The XMLEventWriter or XMLStreamWriter * used to construct this StAXResult determines the * system identifier of the XML result.

*

An {@link UnsupportedOperationException} is always * thrown by this method.

* @param systemId Ignored. * @throws UnsupportedOperationException Is always * thrown by this method. */ // @ts-ignore public setSystemId(systemId: java.lang.String | string): void /** *

The returned system identifier is always null.

* @return The returned system identifier is always null. */ // @ts-ignore public getSystemId(): string } } } } }