javax.xml.transform.sax
Class SAXSource
java.lang.Object
|
+--javax.xml.transform.sax.SAXSource
All Implemented Interfaces:
Source
Acts as a holder for "pull style" inputs to an XSLT transform.
SAX based transforms can support a second style of inputs,
driving by a TransformerHandler as output of some
other SAX processing pipeline. stage.
Author:- Andrew Selkirk, David Brownell
See Also:
FEATURE
public static final String FEATURE
Used with TransformerFactory.getFeature() to determine
whether the transformers it produces support SAXSource objects
(possibly without URIs) as inputs.
SAXSource
public SAXSource()
SAXSource
public SAXSource(org.xml.sax.InputSource source)
Parameters:
SAXSource
public SAXSource(org.xml.sax.XMLReader reader, org.xml.sax.InputSource source)
Parameters:
getInputSource
public InputSource getInputSource()
getSystemId
public String getSystemId()
getXMLReader
public XMLReader getXMLReader()
setInputSource
public void setInputSource(org.xml.sax.InputSource source)
Parameters:
setSystemId
public void setSystemId(java.lang.String systemID)
Parameters:
setXMLReader
public void setXMLReader(org.xml.sax.XMLReader reader)
Parameters:
sourceToInputSource
public static InputSource sourceToInputSource(javax.xml.transform.Source in)
Creates a SAX input source from its argument.
Understands StreamSource and System ID based input sources,
and insists on finding either a system ID (URI) or some kind
of input stream (character or byte).
Parameters:
Returns:
- SAX input source, or null if one could not be
created.