This package implements SAX2-specific transformation APIs. It provides
classes which allow input from
events, and also classes that produce org.xml.sax.ContentHandler events. It
also provides methods to set the input source as an
XMLReader, or to use a
InputSource as the source. It also allows the
creation of a
XMLFilter, which enables
transformations to "pull" from other transformations, and lets the transformer
to be used polymorphically as an
allows a transformation to be created from SAX2 parse events, which is a "push"
model rather than the "pull" model that normally occurs for a transformation.
Normal parse events are received through the
ContentHandler interface, lexical events such as
startCDATA and endCDATA are received through the
LexicalHandler interface, and events that signal
the start or end of disabling output escaping are received via
ContentHandler.processingInstruction(java.lang.String, java.lang.String), with the
target parameter being
parameters, output properties, or other features need to be set on the
Transformer handler, a
will need to be obtained from
the methods invoked from that reference.
allows the creation of
from SAX2 parse events. Once the
events are complete, the Templates object may be obtained from
TemplatesHandler.getTemplates(). Note that
normally be called in order to establish a base system ID from which relative
URLs may be resolved.
method allows the creation of a
encapsulates the SAX2 notion of a "pull" transformation. The following
illustrates several transformations chained together. Each filter points to a
XMLReader, and the final transformation is
caused by invoking
XMLReader.parse(org.xml.sax.InputSource) on the final
reader in the chain.
A SAX ContentHandler that may be used to process SAX parse events (parsing transformation instructions) into a Templates object.
A TransformerHandler listens for SAX ContentHandler parse events and transforms them to a Result.
Acts as an holder for a transformation Result.
Acts as an holder for SAX-style Source.
This class extends TransformerFactory to provide SAX-specific factory methods.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.