javax.xml.transform.sax

Class SAXTransformerFactory

Known Direct Subclasses:
SAXNullTransformerFactory

public abstract class SAXTransformerFactory
extends TransformerFactory

Specialized transformer factory with support for SAX-specific factory methods. This factory provides SAX content handlers that can create transformation templates and transformers.

Field Summary

static String
FEATURE
Factory feature indicating that the factory can be cast to this class.
static String
FEATURE_XMLFILTER
Factory feature indicating that this factory can create new XMLFilters.

Constructor Summary

SAXTransformerFactory()

Method Summary

TemplatesHandler
newTemplatesHandler()
Returns a content handler that can process SAX events into a transformation template.
TransformerHandler
newTransformerHandler()
Returns a content handler that can process SAX events into a result, using the identity transform.
TransformerHandler
newTransformerHandler(Source src)
Returns a content handler that can process SAX events into a result, using the specified transformation.
TransformerHandler
newTransformerHandler(Templates templates)
Returns a content handler that can process SAX events into a result, using the specified transformation.
XMLFilter
newXMLFilter(Source src)
Creates an XML filter for the specified source.
XMLFilter
newXMLFilter(Templates templates)
Creates an XML filter for the specified compiled stylesheet.

Methods inherited from class javax.xml.transform.TransformerFactory

getAssociatedStylesheet, getAttribute, getErrorListener, getFeature, getURIResolver, newInstance, newTemplates, newTransformer, newTransformer, setAttribute, setErrorListener, setFeature, setURIResolver

Field Details

FEATURE

public static final String FEATURE
Factory feature indicating that the factory can be cast to this class.


FEATURE_XMLFILTER

public static final String FEATURE_XMLFILTER
Factory feature indicating that this factory can create new XMLFilters.

Constructor Details

SAXTransformerFactory

protected SAXTransformerFactory()

Method Details

newTemplatesHandler

public TemplatesHandler newTemplatesHandler()
            throws TransformerConfigurationException
Returns a content handler that can process SAX events into a transformation template.


newTransformerHandler

public TransformerHandler newTransformerHandler()
            throws TransformerConfigurationException
Returns a content handler that can process SAX events into a result, using the identity transform.


newTransformerHandler

public TransformerHandler newTransformerHandler(Source src)
            throws TransformerConfigurationException
Returns a content handler that can process SAX events into a result, using the specified transformation.

Parameters:
src - the source stylesheet


newTransformerHandler

public TransformerHandler newTransformerHandler(Templates templates)
            throws TransformerConfigurationException
Returns a content handler that can process SAX events into a result, using the specified transformation.

Parameters:
templates - the compiled stylesheet


newXMLFilter

public XMLFilter newXMLFilter(Source src)
            throws TransformerConfigurationException
Creates an XML filter for the specified source.


newXMLFilter

public XMLFilter newXMLFilter(Templates templates)
            throws TransformerConfigurationException
Creates an XML filter for the specified compiled stylesheet.