javax.xml.transform.sax

Class SAXTransformerFactory

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 StringFEATURE
Factory feature indicating that the factory can be cast to this class.
static StringFEATURE_XMLFILTER
Factory feature indicating that this factory can create new XMLFilters.
Constructor Summary
protected SAXTransformerFactory()
Method Summary
abstract TemplatesHandlernewTemplatesHandler()
Returns a content handler that can process SAX events into a transformation template.
abstract TransformerHandlernewTransformerHandler(Source src)
Returns a content handler that can process SAX events into a result, using the specified transformation.
abstract TransformerHandlernewTransformerHandler(Templates templates)
Returns a content handler that can process SAX events into a result, using the specified transformation.
abstract TransformerHandlernewTransformerHandler()
Returns a content handler that can process SAX events into a result, using the identity transform.
abstract XMLFilternewXMLFilter(Source src)
Creates an XML filter for the specified source.
abstract XMLFilternewXMLFilter(Templates templates)
Creates an XML filter for the specified compiled stylesheet.

Field Detail

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 Detail

SAXTransformerFactory

protected SAXTransformerFactory()

Method Detail

newTemplatesHandler

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

newTransformerHandler

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

Parameters: src the source stylesheet

newTransformerHandler

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

Parameters: templates the compiled stylesheet

newTransformerHandler

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

newXMLFilter

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

newXMLFilter

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