Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.xml.transform.TransformerFactory
javax.xml.transform.sax.SAXTransformerFactory
gnu.xml.util.SAXNullTransformerFactory
public class SAXNullTransformerFactory
extends SAXTransformerFactory
SAXSource
class
just wraps an XMLReader
and InputSource
, while the
SAXResult
class is less
functional than a EventConsumer
.
(Notably, it drops all but one declaration from any DTD.)DOMSource
class
corresponds to special SAX parsers like DomParser
, and the
DOMResult
class corresponds
to a DomConsumer
.StreamSource
class corresponds to a SAX InputSource
, and the
StreamResult
class
corresponds to a TextConsumer
.XsltFilter
Field Summary |
Fields inherited from class javax.xml.transform.sax.SAXTransformerFactory | |
FEATURE , FEATURE_XMLFILTER |
Constructor Summary | |
|
Method Summary | |
Source |
|
Object |
|
ErrorListener |
|
boolean |
|
URIResolver |
|
Templates |
|
TemplatesHandler |
|
Transformer | |
Transformer |
|
TransformerHandler |
|
TransformerHandler |
|
TransformerHandler |
|
XMLFilter |
|
XMLFilter |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class javax.xml.transform.sax.SAXTransformerFactory | |
newTemplatesHandler , newTransformerHandler , newTransformerHandler , newTransformerHandler , newXMLFilter , newXMLFilter |
Methods inherited from class javax.xml.transform.TransformerFactory | |
getAssociatedStylesheet , getAttribute , getErrorListener , getFeature , getURIResolver , newInstance , newTemplates , newTransformer , newTransformer , setAttribute , setErrorListener , setFeature , setURIResolver |
public Source getAssociatedStylesheet(Source source, String media, String title, String charset) throws TransformerConfigurationException
(not yet implemented)
- Overrides:
- getAssociatedStylesheet in interface TransformerFactory
public Object getAttribute(String key)
Throws an exception (no implementation attributes are supported)
- Overrides:
- getAttribute in interface TransformerFactory
public ErrorListener getErrorListener()
Returns the value assigned bysetErrorListener(ErrorListener)
.
- Overrides:
- getErrorListener in interface TransformerFactory
public boolean getFeature(String feature)
Returns true if the requested feature is supported. All three kinds of input and output are accepted: XML text, SAX events, and DOM nodes.
- Overrides:
- getFeature in interface TransformerFactory
public URIResolver getURIResolver()
Returns the value assigned bysetURIResolver(URIResolver)
.
- Overrides:
- getURIResolver in interface TransformerFactory
public Templates newTemplates(Source stylesheet) throws TransformerConfigurationException
Throws an exception (XSLT is not supported).
- Overrides:
- newTemplates in interface TransformerFactory
public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException
Throws an exception (XSLT is not supported).
- Overrides:
- newTemplatesHandler in interface SAXTransformerFactory
public Transformer newTransformer() throws TransformerConfigurationException
- Overrides:
- newTransformer in interface TransformerFactory
public Transformer newTransformer(Source stylesheet) throws TransformerConfigurationException
Throws an exception (XSLT is not supported).
- Overrides:
- newTransformer in interface TransformerFactory
public TransformerHandler newTransformerHandler() throws TransformerConfigurationException
Returns a TransformerHandler that knows how to generate output in all three standard formats. Output text is generated usingXMLWriter
, and the GNU implementation ofDOM
is used.
- Overrides:
- newTransformerHandler in interface SAXTransformerFactory
- See Also:
SAXResult
,StreamResult
,DOMResult
public TransformerHandler newTransformerHandler(Source stylesheet) throws TransformerConfigurationException
Throws an exception (XSLT is not supported).
- Overrides:
- newTransformerHandler in interface SAXTransformerFactory
public TransformerHandler newTransformerHandler(Templates stylesheet) throws TransformerConfigurationException
Throws an exception (XSLT is not supported).
- Overrides:
- newTransformerHandler in interface SAXTransformerFactory
public XMLFilter newXMLFilter(Source stylesheet) throws TransformerConfigurationException
Throws an exception (XSLT is not supported).
- Overrides:
- newXMLFilter in interface SAXTransformerFactory
public XMLFilter newXMLFilter(Templates stylesheet) throws TransformerConfigurationException
Throws an exception (XSLT is not supported).
- Overrides:
- newXMLFilter in interface SAXTransformerFactory
public void setAttribute(String key, Object value)
Throws an exception (no implementation attributes are supported)
- Overrides:
- setAttribute in interface TransformerFactory
public void setErrorListener(ErrorListener e)
Assigns a value that would be used when parsing stylesheets
- Overrides:
- setErrorListener in interface TransformerFactory
public void setFeature(String name, boolean value) throws TransformerConfigurationException
- Overrides:
- setFeature in interface TransformerFactory
public void setURIResolver(URIResolver u)
Assigns a value that would be used when parsing stylesheets
- Overrides:
- setURIResolver in interface TransformerFactory