|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This object represents a Transformer, which is a SAX2 XMLFilter. An object of this class can not be used concurrently over multiple threads.
Method Summary | |
org.xml.sax.ContentHandler |
getInputContentHandler()
Get a SAX2 ContentHandler for the input. |
org.xml.sax.ext.DeclHandler |
getInputDeclHandler()
Get a SAX2 DeclHandler for the input. |
org.xml.sax.ext.LexicalHandler |
getInputLexicalHandler()
Get a SAX2 LexicalHandler for the input. |
org.xml.sax.XMLReader |
getXMLReader()
Get the XML parser used for the source tree. |
void |
resetParameters()
Reset the parameters to a null list. |
void |
setOutputFormat(OutputFormat oformat)
Set the output properties for the transformation. |
void |
setParameter(java.lang.String name,
java.lang.String namespace,
java.lang.Object value)
Set a parameter for the templates. |
void |
setURIResolver(URIResolver resolver)
Set an object that will be used to resolve URIs used in document(), etc. |
void |
setXMLReader(org.xml.sax.XMLReader reader)
Set an XML parser for the source tree. |
void |
transform(org.xml.sax.InputSource xmlSource)
Process the source tree to SAX parse events. |
void |
transform(org.xml.sax.InputSource xmlSource,
Result outputTarget)
Process the source tree to the output result. |
void |
transformNode(org.w3c.dom.Node node)
Process the source node to to SAX parse events, if the processor supports the "http://xml.org/trax/features/dom/input" feature. |
void |
transformNode(org.w3c.dom.Node node,
Result outputTarget)
Process the source node to the output result, if the processor supports the "http://xml.org/trax/features/dom/input" feature. |
Methods inherited from interface org.xml.sax.XMLFilter |
getParent, setParent |
Methods inherited from interface org.xml.sax.XMLReader |
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty |
Method Detail |
public void transform(org.xml.sax.InputSource xmlSource) throws TransformException
xmlSource
- The input for the source tree.public void transform(org.xml.sax.InputSource xmlSource, Result outputTarget) throws TransformException
xmlSource
- The input for the source tree.outputTarget
- The output source target.public void transformNode(org.w3c.dom.Node node, Result outputTarget) throws TransformException
node
- The input source node, which can be any valid DOM node.outputTarget
- The output source target.public void transformNode(org.w3c.dom.Node node) throws TransformException
node
- The input source node, which can be any valid DOM node.public org.xml.sax.ContentHandler getInputContentHandler()
public org.xml.sax.ext.DeclHandler getInputDeclHandler()
public org.xml.sax.ext.LexicalHandler getInputLexicalHandler()
public void setOutputFormat(OutputFormat oformat)
org.xml.serialize.OutputFormat
public void setParameter(java.lang.String name, java.lang.String namespace, java.lang.Object value)
name
- The name of the parameter.namespace
- The namespace of the parameter.public void resetParameters()
public void setURIResolver(URIResolver resolver)
resolver
- An object that implements the URIResolver interface,
or null.public void setXMLReader(org.xml.sax.XMLReader reader)
public org.xml.sax.XMLReader getXMLReader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |