Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.xml.transform.sax

Class SAXSource

java.lang.Object
|
+--javax.xml.transform.sax.SAXSource

All Implemented Interfaces:

Source


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.

Author:See Also:

Field Summary

static java.lang.StringFEATURE

Used with TransformerFactory.getFeature() to determine whether the transformers it produces support SAXSource objects (possibly without URIs) as inputs.

Constructor Summary

SAXSource()

SAXSource(org.xml.sax.XMLReader reader, org.xml.sax.InputSource source)

SAXSource(org.xml.sax.InputSource source)

Method Summary

org.xml.sax.InputSourcegetInputSource()

java.lang.StringgetSystemId()

org.xml.sax.XMLReadergetXMLReader()

voidsetInputSource(org.xml.sax.InputSource source)

voidsetSystemId(java.lang.String systemID)

voidsetXMLReader(org.xml.sax.XMLReader reader)

static org.xml.sax.InputSourcesourceToInputSource(javax.xml.transform.Source in)

Creates a SAX input source from its argument.

Field Details

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 Details

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:


Method Details

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: