|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.transform.TransformerFactory | +--javax.xml.transform.sax.SAXTransformerFactory
A TransformerFactory that supports several separate modes for working with SAX inputs and outputs. Those modes include:
TransformerHandler
objects used as SAX handlers, and passing the transformed data
through a SAXResult
encapsulating SAX ContentHandler and
LexicalHandler objects;
Result
to store transformed data rather than
passing it to another stage;
XMLFilter
object taking data from a URI
or from a SAX InputSource
input object and delivering it
to a SAX ContentHandler;
SAXSource
objects as inputs, and the XMLReader
object in such a source could be an XMLFilter.
Transformer objects produced by this factory will of course be
able to perform Transformer.transform()
operations to map XML text into other text.
The factory also supports creating Templates objects.
Field Summary | |
static java.lang.String |
FEATURE
Used with TransformerFactory.getFeature() to determine whether the transformers it produces extend this class. |
static java.lang.String |
FEATURE_XMLFILTER
Used with TransformerFactory.getFeature() to determine whether newXMLFilter() methods are supported. |
Constructor Summary | |
protected |
SAXTransformerFactory()
Constructor, for use with subclasses |
Method Summary | |
abstract TemplatesHandler |
newTemplatesHandler()
Returns a SAX event consumer collecting its inputs into a pre-parsed stylesheet. |
abstract TransformerHandler |
newTransformerHandler()
Returns a SAX event consumer sending its inputs to some Result without transforming them (null transformation). |
abstract TransformerHandler |
newTransformerHandler(Source stylesheet)
Returns a SAX event consumer sending its inputs to some Result after transforming them according to a stylesheet. |
abstract TransformerHandler |
newTransformerHandler(Templates stylesheet)
Returns a SAX event consumer sending its inputs to some Result after transforming them according to a pre-parsed stylesheet. |
abstract XMLFilter |
newXMLFilter(Source stylesheet)
Returns a SAX parser that transforms XML data according to a stylesheet before reporting SAX events. |
abstract XMLFilter |
newXMLFilter(Templates stylesheet)
Returns a SAX parser that transforms XML data according to a pre-parsed stylesheet before reporting SAX events. |
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 |
Field Detail |
public static final java.lang.String FEATURE
public static final java.lang.String FEATURE_XMLFILTER
Constructor Detail |
protected SAXTransformerFactory()
Method Detail |
public abstract TransformerHandler newTransformerHandler(Source stylesheet) throws TransformerConfigurationException
public abstract TransformerHandler newTransformerHandler(Templates stylesheet) throws TransformerConfigurationException
public abstract TransformerHandler newTransformerHandler() throws TransformerConfigurationException
public abstract XMLFilter newXMLFilter(Source stylesheet) throws TransformerConfigurationException
public abstract XMLFilter newXMLFilter(Templates stylesheet) throws TransformerConfigurationException
public abstract TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2001-11-20.