javax.xml.transform.sax
Class SAXTransformerFactory

java.lang.Object
  extended by javax.xml.transform.TransformerFactory
      extended by javax.xml.transform.sax.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 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
protected SAXTransformerFactory()
           
 
Method Summary
abstract  TemplatesHandler newTemplatesHandler()
          Returns a content handler that can process SAX events into a transformation template.
abstract  TransformerHandler newTransformerHandler()
          Returns a content handler that can process SAX events into a result, using the identity transform.
abstract  TransformerHandler newTransformerHandler(Source src)
          Returns a content handler that can process SAX events into a result, using the specified transformation.
abstract  TransformerHandler newTransformerHandler(Templates templates)
          Returns a content handler that can process SAX events into a result, using the specified transformation.
abstract  XMLFilter newXMLFilter(Source src)
          Creates an XML filter for the specified source.
abstract  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE

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

See Also:
Constant Field Values

FEATURE_XMLFILTER

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

See Also:
Constant Field Values
Constructor Detail

SAXTransformerFactory

protected SAXTransformerFactory()
Method Detail

newTransformerHandler

public abstract 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
Throws:
TransformerConfigurationException

newTransformerHandler

public abstract 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
Throws:
TransformerConfigurationException

newTransformerHandler

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

Throws:
TransformerConfigurationException

newTemplatesHandler

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

Throws:
TransformerConfigurationException

newXMLFilter

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

Throws:
TransformerConfigurationException

newXMLFilter

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

Throws:
TransformerConfigurationException