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

Acts as an holder for SAX-style Source.

*

Note that XSLT requires namespace support. Attempting to transform an * input source that is not * generated with a namespace-aware parser may result in errors. * Parsers can be made namespace aware by calling the * {@link javax.xml.parsers.SAXParserFactory#setNamespaceAware(boolean awareness)} method.

* @author Jeff Suttor */ // @ts-ignore class SAXSource extends java.lang.Object implements javax.xml.transform.Source { /** *

Zero-argument default constructor. If this constructor is used, and * no SAX source is set using * {@link #setInputSource(InputSource inputSource)} , then the * Transformer will * create an empty source {@link org.xml.sax.InputSource} using * {@link org.xml.sax.InputSource#InputSource() new InputSource()}.

* @see javax.xml.transform.Transformer#transform(Source xmlSource, Result outputTarget) */ // @ts-ignore constructor() /** * Create a SAXSource, using an {@link org.xml.sax.XMLReader} * and a SAX InputSource. The {@link javax.xml.transform.Transformer} * or {@link javax.xml.transform.sax.SAXTransformerFactory} will set itself * to be the reader's {@link org.xml.sax.ContentHandler}, and then will call * reader.parse(inputSource). * @param reader An XMLReader to be used for the parse. * @param inputSource A SAX input source reference that must be non-null * and that will be passed to the reader parse method. */ // @ts-ignore constructor(reader: org.xml.sax.XMLReader, inputSource: org.xml.sax.InputSource) /** * Create a SAXSource, using a SAX InputSource. * The {@link javax.xml.transform.Transformer} or * {@link javax.xml.transform.sax.SAXTransformerFactory} creates a * reader via {@link org.xml.sax.helpers.XMLReaderFactory} * (if setXMLReader is not used), sets itself as * the reader's {@link org.xml.sax.ContentHandler}, and calls * reader.parse(inputSource). * @param inputSource An input source reference that must be non-null * and that will be passed to the parse method of the reader. */ // @ts-ignore constructor(inputSource: org.xml.sax.InputSource) /** * If {@link javax.xml.transform.TransformerFactory#getFeature} * returns true when passed this value as an argument, * the Transformer supports Source input of this type. */ // @ts-ignore public static readonly FEATURE: java.lang.String | string /** * Set the XMLReader to be used for the Source. * @param reader A valid XMLReader or XMLFilter reference. */ // @ts-ignore public setXMLReader(reader: org.xml.sax.XMLReader): void /** * Get the XMLReader to be used for the Source. * @return A valid XMLReader or XMLFilter reference, or null. */ // @ts-ignore public getXMLReader(): org.xml.sax.XMLReader /** * Set the SAX InputSource to be used for the Source. * @param inputSource A valid InputSource reference. */ // @ts-ignore public setInputSource(inputSource: org.xml.sax.InputSource): void /** * Get the SAX InputSource to be used for the Source. * @return A valid InputSource reference, or null. */ // @ts-ignore public getInputSource(): org.xml.sax.InputSource /** * Set the system identifier for this Source. If an input source * has already been set, it will set the system ID or that * input source, otherwise it will create a new input source. *

The system identifier is optional if there is a byte stream * or a character stream, but it is still useful to provide one, * since the application can use it to resolve relative URIs * and can include it in error messages and warnings (the parser * will attempt to open a connection to the URI only if * no byte stream or character stream is specified).

* @param systemId The system identifier as a URI string. */ // @ts-ignore public setSystemId(systemId: java.lang.String | string): void /** *

Get the base ID (URI or system ID) from where URIs * will be resolved.

* @return Base URL for the Source, or null. */ // @ts-ignore public getSystemId(): string /** * Attempt to obtain a SAX InputSource object from a Source * object. * @param source Must be a non-null Source reference. * @return An InputSource, or null if Source can not be converted. */ // @ts-ignore public static sourceToInputSource(source: javax.xml.transform.Source): org.xml.sax.InputSource } } } } }