|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.transform.TransformerFactory
Represents a factory to make transformers.
Constructor Summary | |
protected |
TransformerFactory()
Default constructor is protected on purpose. |
Method Summary | |
abstract Source |
getAssociatedStylesheet(Source source,
java.lang.String media,
java.lang.String title,
java.lang.String charset)
Returns the stylesheet source object associated with the given XML document. |
abstract java.lang.Object |
getAttribute(java.lang.String name)
Returns an implementation-specific attribute. |
abstract ErrorListener |
getErrorListener()
Returns the error handler for the factory. |
abstract boolean |
getFeature(java.lang.String name)
Returns true if the named feature is implemented. |
abstract URIResolver |
getURIResolver()
Returns the class to be used to lookup relative paths in the stylesheet. |
static TransformerFactory |
newInstance()
Returns the transformer factory. |
abstract Templates |
newTemplates(Source source)
Compiles a stylesheet, returning the compiled interface. |
abstract Transformer |
newTransformer()
Returns an identity transformer. |
abstract Transformer |
newTransformer(Source source)
Compiles a stylesheet, returning a transformer. |
abstract void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an implementation-specific attribute. |
abstract void |
setErrorListener(ErrorListener listener)
Sets the error handler for the factory. |
abstract void |
setURIResolver(URIResolver listener)
Sets the class to be used to lookup relative paths in the stylesheet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected TransformerFactory()
Method Detail |
public static TransformerFactory newInstance() throws TransformerFactoryConfigurationError
public abstract java.lang.Object getAttribute(java.lang.String name)
name
- the attribute's name.public abstract void setAttribute(java.lang.String name, java.lang.Object value)
name
- the attribute's name.value
- the attribute's valuepublic abstract boolean getFeature(java.lang.String name)
name
- the feature name.public abstract ErrorListener getErrorListener()
public abstract void setErrorListener(ErrorListener listener)
public abstract URIResolver getURIResolver()
public abstract void setURIResolver(URIResolver listener)
public abstract Source getAssociatedStylesheet(Source source, java.lang.String media, java.lang.String title, java.lang.String charset) throws TransformerConfigurationException
source
- the XML document which needs a stylesheet.media
- the media attribute for the stylesheettitle
- the title attribute for the stylesheetcharset
- the character encoding for the stylesheet result.public abstract Templates newTemplates(Source source) throws TransformerConfigurationException
source
- specifies the source file.public abstract Transformer newTransformer() throws TransformerConfigurationException
public abstract Transformer newTransformer(Source source) throws TransformerConfigurationException
source
- specifies the source file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |