java.lang.Objectjavax.xml.transform.sax.SAXSource
All Implemented Interfaces:
Source
Direct Known Subclasses:
JAXBSource
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.xml.parsers.SAXParserFactory#setNamespaceAware(boolean awareness) method.
- href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor
$
- Revision: 446598 $, $Date: 2006-09-15 08:55:40 -0400 (Fri, 15 Sep 2006) $Field Summary | ||
---|---|---|
public static final String | FEATURE | If javax.xml.transform.TransformerFactory#getFeature returns true when passed this value as an argument, the Transformer supports Source input of this type. |
Constructor: |
---|
Zero-argument default constructor. If this constructor is used, and
no SAX source is set using
#setInputSource(InputSource inputSource) , then the
|
SAXSource , using a SAX InputSource .
The javax.xml.transform.Transformer or
javax.xml.transform.sax.SAXTransformerFactory creates a
reader via org.xml.sax.helpers.XMLReaderFactory
(if setXMLReader is not used), sets itself as
the reader's org.xml.sax.ContentHandler , and calls
reader.parse(inputSource).
|
SAXSource , using an org.xml.sax.XMLReader
and a SAX InputSource. The javax.xml.transform.Transformer
or javax.xml.transform.sax.SAXTransformerFactory will set itself
to be the reader's org.xml.sax.ContentHandler , and then will call
reader.parse(inputSource).
|
Method from javax.xml.transform.sax.SAXSource Summary: |
---|
getInputSource, getSystemId, getXMLReader, setInputSource, setSystemId, setXMLReader, sourceToInputSource |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.xml.transform.sax.SAXSource Detail: |
---|
|
Get the base ID (URI or system ID) from where URIs will be resolved. |
|
|
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). |
|
|