javax.xml.transform.sax
Class SAXTransformerFactory
java.lang.Object
|
+--javax.xml.transform.TransformerFactory
|
+--javax.xml.transform.sax.SAXTransformerFactory
- All Implemented Interfaces:
- Source
- Direct Known Subclasses:
- AbstractStylesheetFactory
- public abstract class SAXTransformerFactory
- extends TransformerFactory
- implements Source
Implementation to create transformers from a SAX source.
Field Summary |
static java.lang.String |
FEATURE
The feature name to tell if the transformer can load from a SAX parser. |
static java.lang.String |
FEATURE_XMLFILTER
Used to tell if the newXMLFilter methods are supported. |
Methods inherited from class javax.xml.transform.TransformerFactory |
getAssociatedStylesheet, getAttribute, getErrorListener, getFeature, getURIResolver, newInstance, newTemplates, newTransformer, newTransformer, setAttribute, setErrorListener, setURIResolver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FEATURE
public static final java.lang.String FEATURE
- The feature name to tell if the transformer can load from a SAX parser.
FEATURE_XMLFILTER
public static final java.lang.String FEATURE_XMLFILTER
- Used to tell if the
newXMLFilter
methods are supported.
SAXTransformerFactory
protected SAXTransformerFactory()
- Default constructor is protected.
newTemplatesHandler
public abstract TemplatesHandler newTemplatesHandler()
throws TransformerConfigurationException
- Returns a template handler that can be used to process SAX events.
newTransformerHandler
public abstract TransformerHandler newTransformerHandler()
throws TransformerConfigurationException
- Returns a transformer handler that can be used to process SAX events.
The transformer is an identity transformation.
newTransformerHandler
public abstract TransformerHandler newTransformerHandler(Source source)
throws TransformerConfigurationException
- Returns a transformer handler that can be used to process SAX events.
The transformer is an identity transformation.
newTransformerHandler
public abstract TransformerHandler newTransformerHandler(Templates templates)
throws TransformerConfigurationException
- Returns a transformer handler that can be used to process SAX events,
given a Templates object.
- Parameters:
templates
- compiled stylesheet
newXMLFilter
public abstract org.xml.sax.XMLFilter newXMLFilter(Source source)
throws TransformerConfigurationException
- Returns an XML filter from the transformer.
- Parameters:
source
- the source file
newXMLFilter
public abstract org.xml.sax.XMLFilter newXMLFilter(Templates templates)
throws TransformerConfigurationException
- Returns an XML filter from the transformer based on a compiled stylesheet.
- Parameters:
template
- the compiled stylesheet.