Google

: Class SAXTransformerFactory


Class SAXTransformerFactory


java.lang.Object

  |


        |


Direct Known Subclasses:
TransformerFactoryImpl

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.



returns true when passed this value as an argument, the TransformerFactory returned from be safely cast to a SAXTransformerFactory.
returns true when passed this value as an argument,
Field Summary
static java.lang.String
static java.lang.String
 
          The default constructor is protected on purpose.
Constructor Summary
protected
 
Method Summary

          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.

          Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.

          Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the Templates argument.

          Create an XMLFilter that uses the given Source as the transformation instructions.

          Create an XMLFilter, based on the Templates argument..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE


public static final java.lang.String FEATURE
returns true when passed this value as an argument, the TransformerFactory returned from be safely cast to a SAXTransformerFactory.

FEATURE_XMLFILTER


public static final java.lang.String FEATURE_XMLFILTER
returns true when passed this value as an argument,
Constructor Detail

SAXTransformerFactory


protected SAXTransformerFactory()
The default constructor is protected on purpose.
Method Detail
newTransformerHandler


Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
TransformerHandler can not be created.

newTransformerHandler


Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the Templates argument.
TransformerHandler can not be created.

newTransformerHandler



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.
Returns:
A non-null reference to a TransformerHandler, that may TransformerHandler cannot be created.

newTemplatesHandler



Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object.
Returns:
A non-null reference to a TransformerHandler, that may TemplatesHandler cannot be created.

newXMLFilter


Create an XMLFilter that uses the given Source as the transformation instructions.
TemplatesHandler cannot be created.

newXMLFilter


Create an XMLFilter, based on the Templates argument..
TemplatesHandler cannot be created.