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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FEATURE | If getFeature(String)
returns true when passed this value as an argument,
the TransformerFactory returned from
newInstance() may
be safely cast to a SAXTransformerFactory. |
|||||||||
String | FEATURE_XMLFILTER | If getFeature(String)
returns true when passed this value as an argument,
the newXMLFilter(Source)
and newXMLFilter(Templates) methods are supported. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The default constructor is protected on purpose.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get a TemplatesHandler object that can process SAX
ContentHandler events into a Templates object.
| |||||||||||
Get a TransformerHandler object that can process SAX
ContentHandler events into a Result, based on the Templates argument.
| |||||||||||
Get a TransformerHandler object that can process SAX
ContentHandler events into a Result.
| |||||||||||
Get a TransformerHandler object that can process SAX
ContentHandler events into a Result, based on the transformation
instructions specified by the argument.
| |||||||||||
Create an XMLFilter, based on the Templates argument..
| |||||||||||
Create an XMLFilter that uses the given Source as the
transformation instructions.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.xml.transform.TransformerFactory
| |||||||||||
From class
java.lang.Object
|
If getFeature(String)
returns true when passed this value as an argument,
the TransformerFactory returned from
newInstance()
may
be safely cast to a SAXTransformerFactory.
If getFeature(String)
returns true when passed this value as an argument,
the newXMLFilter(Source)
and newXMLFilter(Templates)
methods are supported.
The default constructor is protected on purpose.
Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object.
TransformerConfigurationException | If for some reason the TemplatesHandler cannot be created. |
---|
Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the Templates argument.
templates | The compiled transformation instructions. |
---|
TransformerConfigurationException | If for some reason the TransformerHandler can not be created. |
---|
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.
TransformerConfigurationException | If for some reason the TransformerHandler cannot be created. |
---|
Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
src | The Source of the transformation instructions. |
---|
TransformerConfigurationException | If for some reason the TransformerHandler can not be created. |
---|
Create an XMLFilter, based on the Templates argument..
templates | The compiled transformation instructions. |
---|
TransformerConfigurationException | If for some reason the TemplatesHandler cannot be created. |
---|
Create an XMLFilter that uses the given Source as the transformation instructions.
src | The Source of the transformation instructions. |
---|
TransformerConfigurationException | If for some reason the TemplatesHandler cannot be created. |
---|