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
javax. method.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FEATURE
If |
| private InputSource | inputSource
The SAX InputSource to be used for the source tree input. |
| private XMLReader | reader
The XMLReader to be used for the source tree input. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SAXSource(XMLReader
An XMLReader to be used for the parse. reader, InputSource A SAX input source reference that must be non-null
and that will be passed to the reader parse method. inputSource)Create a |
| public | SAXSource(InputSource
An input source reference that must be non-null
and that will be passed to the parse method of the reader. inputSource)Create a |
| Modifier and Type | Method and Description |
|---|---|
| public InputSource | Returns: A valid InputSource reference, or null.Get the SAX InputSource to be used for the Source. |
| public String | Returns: Base URL for theSource, or null.Implements javax. Get the base ID (URI or system ID) from where URIs will be resolved. |
| public XMLReader | Returns: A valid XMLReader or XMLFilter reference, or null.Get the XMLReader to be used for the Source. |
| public boolean | Returns: true if theSAXSource object is empty, false otherwiseOverrides default javax. Indicates whether the |
| public void | setInputSource(InputSource
A valid InputSource reference. inputSource)Set the SAX InputSource to be used for the Source. |
| public void | setSystemId(String
The system identifier as a URI string. systemId)Implements javax. Set the system identifier for this Source. |
| public void | setXMLReader(XMLReader
A valid XMLReader or XMLFilter reference. reader)Set the XMLReader to be used for the Source. |
| public static InputSource | Returns: An InputSource, or null if Source can not be converted.Must be a non-null Source reference. source)Attempt to obtain a SAX InputSource object from a Source object. |
| FEATURE | back to summary |
|---|---|
| public static final String FEATURE If | |
| inputSource | back to summary |
|---|---|
| private InputSource inputSource The SAX InputSource to be used for the source tree input.
Should not be | |
| reader | back to summary |
|---|---|
| private XMLReader reader The XMLReader to be used for the source tree input. May be null. | |
| SAXSource | back to summary |
|---|---|
| public SAXSource() Zero-argument default constructor. If this constructor is used, and
no SAX source is set using
| |
| SAXSource | back to summary |
|---|---|
| public SAXSource(XMLReader reader, InputSource inputSource) Create a
| |
| SAXSource | back to summary |
|---|---|
| public SAXSource(InputSource inputSource) Create a
| |
| getInputSource | back to summary |
|---|---|
| public InputSource getInputSource() Get the SAX InputSource to be used for the Source.
| |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Implements javax. Get the base ID (URI or system ID) from where URIs will be resolved. | |
| getXMLReader | back to summary |
|---|---|
| public XMLReader getXMLReader() Get the XMLReader to be used for the Source.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides default javax. Indicates whether the
| |
| setInputSource | back to summary |
|---|---|
| public void setInputSource(InputSource inputSource) Set the SAX InputSource to be used for the Source.
| |
| setSystemId | back to summary |
|---|---|
| public void setSystemId(String systemId) Implements javax. 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). | |
| setXMLReader | back to summary |
|---|---|
| public void setXMLReader(XMLReader reader) Set the XMLReader to be used for the Source.
| |
| sourceToInputSource | back to summary |
|---|---|
| public static InputSource sourceToInputSource(Source source) Attempt to obtain a SAX InputSource object from a Source object.
| |