javax.xml.transform.sax

Class SAXSource

public class SAXSource extends Object implements 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.

Version: 1.0

Author: Andrew Selkirk, David Brownell

See Also: SAXTransformerFactory

Field Summary
static StringFEATURE
Used with TransformerFactory.getFeature() to determine whether the transformers it produces support SAXSource objects (possibly without URIs) as inputs.
Constructor Summary
SAXSource()
SAXSource(XMLReader reader, InputSource source)
SAXSource(InputSource source)
Method Summary
InputSourcegetInputSource()
StringgetSystemId()
XMLReadergetXMLReader()
voidsetInputSource(InputSource source)
voidsetSystemId(String systemID)
voidsetXMLReader(XMLReader reader)
static InputSourcesourceToInputSource(Source in)
Creates a SAX input source from its argument.

Field Detail

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.

Constructor Detail

SAXSource

public SAXSource()

SAXSource

public SAXSource(XMLReader reader, InputSource source)

SAXSource

public SAXSource(InputSource source)

Method Detail

getInputSource

public InputSource getInputSource()

getSystemId

public String getSystemId()

getXMLReader

public XMLReader getXMLReader()

setInputSource

public void setInputSource(InputSource source)

setSystemId

public void setSystemId(String systemID)

setXMLReader

public void setXMLReader(XMLReader reader)

sourceToInputSource

public static InputSource sourceToInputSource(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: in TRAX style input source

Returns: SAX input source, or null if one could not be created.

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.