public class SAXSource extends java.lang.Object implements javax.xml.transform.Source
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FEATURE
Factory feature indicating that SAX sources are supported.
|
| Constructor and Description |
|---|
SAXSource()
Default constructor.
|
SAXSource(org.xml.sax.InputSource inputSource)
Constructor with an input source.
|
SAXSource(org.xml.sax.XMLReader reader,
org.xml.sax.InputSource inputSource)
Constructor with a SAX parser and input source.
|
| Modifier and Type | Method and Description |
|---|---|
org.xml.sax.InputSource |
getInputSource()
Returns the input source to parse.
|
java.lang.String |
getSystemId()
Returns the system ID for this source.
|
org.xml.sax.XMLReader |
getXMLReader()
Returns the SAX parser to be used by this source.
|
void |
setInputSource(org.xml.sax.InputSource inputSource)
Sets the input source to parse.
|
void |
setSystemId(java.lang.String systemId)
Sets the system ID for this source.
|
void |
setXMLReader(org.xml.sax.XMLReader reader)
Sets the SAX parser to be used by this source.
|
static org.xml.sax.InputSource |
sourceToInputSource(javax.xml.transform.Source source)
Converts a source into a SAX input source.
|
public static final java.lang.String FEATURE
public SAXSource()
public SAXSource(org.xml.sax.XMLReader reader, org.xml.sax.InputSource inputSource)
public SAXSource(org.xml.sax.InputSource inputSource)
public void setXMLReader(org.xml.sax.XMLReader reader)
public org.xml.sax.XMLReader getXMLReader()
public void setInputSource(org.xml.sax.InputSource inputSource)
public org.xml.sax.InputSource getInputSource()
public void setSystemId(java.lang.String systemId)
setSystemId in interface javax.xml.transform.SourcesystemId - the system ID URIpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.Sourcepublic static org.xml.sax.InputSource sourceToInputSource(javax.xml.transform.Source source)