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

Class SAXSource

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

All Implemented Interfaces:
Source


public class SAXSource
extends java.lang.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:
Andrew Selkirk, David Brownell
See Also:
SAXTransformerFactory.newTransformerHandler

Field Summary

static java.lang.String

FEATURE

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

InputSource

getInputSource()

java.lang.String

getSystemId()

XMLReader

getXMLReader()

void

setInputSource(InputSource source)

void

setSystemId(java.lang.String systemID)

void

setXMLReader(XMLReader reader)

static InputSource

sourceToInputSource(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(InputSource source)

Parameters:
source

SAXSource

public SAXSource(XMLReader reader, InputSource source)

Parameters:
reader
source

Method Details

getInputSource

public InputSource getInputSource()


getSystemId

public String getSystemId()


getXMLReader

public XMLReader getXMLReader()


setInputSource

public void setInputSource(InputSource source)

Parameters:
source

setSystemId

public void setSystemId(java.lang.String systemID)

Parameters:
systemID

setXMLReader

public void setXMLReader(XMLReader reader)

Parameters:
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.