|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.xsl.AbstractStylesheetFactory
Abstract factory for creating stylesheets.
Constructor Summary | |
AbstractStylesheetFactory()
|
Method Summary | |
java.lang.ClassLoader |
getClassLoader()
Get classloader for loading stylesheets. |
java.lang.String |
getClassName()
|
Path |
getScriptPath()
|
Path |
getStylePath()
Returns the stylesheet search path. |
protected StylesheetImpl |
loadStylesheet(java.lang.String className)
|
Stylesheet |
newStylesheet(Document xsl)
Create a stylesheet based on a DOM document. |
abstract Stylesheet |
newStylesheet(java.io.InputStream is)
Create a stylesheet the input stream as a source. |
Stylesheet |
newStylesheet(Path path)
|
Stylesheet |
newStylesheet(java.lang.String systemId)
Loads a stylesheet from a named file |
void |
setClassLoader(java.lang.ClassLoader loader)
Set the parent classloader for loading stylesheets. |
void |
setClassName(java.lang.String className)
|
void |
setScriptPath(Path path)
|
void |
setStylePath(Path path)
Sets the search path for stylesheets. |
void |
transform(Document xsl,
Node xml,
java.io.OutputStream out)
Convenience class to transform a node. |
void |
transform(java.lang.String xsl,
Node xml,
java.io.OutputStream out)
Convenience class to transform a node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractStylesheetFactory()
Method Detail |
public void setStylePath(Path path)
setStylePath
in interface StylesheetFactory
path
- path containing stylesheets.public Path getStylePath()
getStylePath
in interface StylesheetFactory
public void setScriptPath(Path path)
public Path getScriptPath()
public void setClassName(java.lang.String className)
public java.lang.String getClassName()
public void setClassLoader(java.lang.ClassLoader loader)
StylesheetFactory
setClassLoader
in interface StylesheetFactory
public java.lang.ClassLoader getClassLoader()
StylesheetFactory
getClassLoader
in interface StylesheetFactory
public Stylesheet newStylesheet(Document xsl) throws java.lang.Exception
StylesheetFactory
newStylesheet
in interface StylesheetFactory
public Stylesheet newStylesheet(java.lang.String systemId) throws java.lang.Exception
newStylesheet
in interface StylesheetFactory
com.caucho.transform.StylesheetFactory
systemId
- filename of the stylesheet.public Stylesheet newStylesheet(Path path) throws java.lang.Exception
public abstract Stylesheet newStylesheet(java.io.InputStream is) throws java.lang.Exception
StylesheetFactory
newStylesheet
in interface StylesheetFactory
protected StylesheetImpl loadStylesheet(java.lang.String className) throws java.lang.Exception
public void transform(Document xsl, Node xml, java.io.OutputStream out) throws java.lang.Exception
public void transform(java.lang.String xsl, Node xml, java.io.OutputStream out) throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |