Home » xml-commons-external-1.4.01-src » javax » xml » transform » sax » [javadoc | source]
javax.xml.transform.sax
abstract public class: SAXTransformerFactory [javadoc | source]
java.lang.Object
   javax.xml.transform.TransformerFactory
      javax.xml.transform.sax.SAXTransformerFactory
This class extends TransformerFactory to provide SAX-specific factory methods. It provides two types of ContentHandlers, one for creating Transformers, the other for creating Templates objects.

If an application wants to set the ErrorHandler or EntityResolver for an XMLReader used during a transformation, it should use a URIResolver to return the SAXSource which provides (with getXMLReader) a reference to the XMLReader.

Field Summary
public static final  String FEATURE    If javax.xml.transform.TransformerFactory#getFeature returns true when passed this value as an argument, the TransformerFactory returned from javax.xml.transform.TransformerFactory#newInstance may be safely cast to a SAXTransformerFactory. 
public static final  String FEATURE_XMLFILTER    If javax.xml.transform.TransformerFactory#getFeature returns true when passed this value as an argument, the #newXMLFilter(Source src) and #newXMLFilter(Templates templates) methods are supported. 
Constructor:
 protected SAXTransformerFactory() 
Method from javax.xml.transform.sax.SAXTransformerFactory Summary:
newTemplatesHandler,   newTransformerHandler,   newTransformerHandler,   newTransformerHandler,   newXMLFilter,   newXMLFilter
Methods from javax.xml.transform.TransformerFactory:
getAssociatedStylesheet,   getAttribute,   getErrorListener,   getFeature,   getURIResolver,   newInstance,   newInstance,   newTemplates,   newTransformer,   newTransformer,   setAttribute,   setErrorListener,   setFeature,   setURIResolver
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.xml.transform.sax.SAXTransformerFactory Detail:
 abstract public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException
    Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object.
 abstract public TransformerHandler newTransformerHandler() throws TransformerConfigurationException
    Get a TransformerHandler object that can process SAX ContentHandler events into a Result. The transformation is defined as an identity (or copy) transformation, for example to copy a series of SAX parse events into a DOM tree.
 abstract public TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException
    Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
 abstract public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException
    Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the Templates argument.
 abstract public XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException
    Create an XMLFilter that uses the given Source as the transformation instructions.
 abstract public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException
    Create an XMLFilter, based on the Templates argument..