|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jmscts.report.TransformerHelper
Helper class for performing XML transformations
Method Summary | |
static javax.xml.transform.Templates |
getStylesheet(java.io.File path)
Loads a stylesheet |
static void |
transform(java.io.File inputPath,
java.io.File outputPath,
java.io.File stylesheetPath)
Transforms a file |
static void |
transform(java.io.File inputPath,
java.io.File outputPath,
javax.xml.transform.Templates stylesheet,
java.util.HashMap properties)
Transforms a file |
static void |
transformAllXDoc2HTML(java.io.File inputDir,
java.io.File outputDir,
java.io.File baseDir)
Transforms all xdoc files in a directory to HTML |
static void |
transformXDoc2HTML(java.io.File inputPath,
java.io.File outputPath,
java.io.File baseDir)
Transforms a single xdoc file to HTML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void transformXDoc2HTML(java.io.File inputPath, java.io.File outputPath, java.io.File baseDir) throws java.io.IOException, javax.xml.transform.TransformerException
inputPath
- the path of the file to transformoutputPath
- the file or directory to generate HTMLbaseDir
- the base directory path to locate resourcesjava.io.IOException
- for any I/O errorjavax.xml.transform.TransformerException
- if the stylesheet cannot be loaded or
appliedpublic static void transformAllXDoc2HTML(java.io.File inputDir, java.io.File outputDir, java.io.File baseDir) throws java.io.IOException, javax.xml.transform.TransformerException
inputDir
- the directory containing the xdocsoutputDir
- the directory to generate HTMLbaseDir
- the base directory path to locate resourcesjava.io.IOException
- for any I/O errorjavax.xml.transform.TransformerException
- if the stylesheet cannot be loaded or
appliedpublic static void transform(java.io.File inputPath, java.io.File outputPath, java.io.File stylesheetPath) throws java.io.IOException, javax.xml.transform.TransformerException
inputPath
- the path of the file to transformoutputPath
- the path to write the transformed filestylesheetPath
- the path to the stylesheet to perform the
transformationjava.io.IOException
- for any I/O errorjavax.xml.transform.TransformerException
- if the stylesheet cannot be loaded or
appliedpublic static void transform(java.io.File inputPath, java.io.File outputPath, javax.xml.transform.Templates stylesheet, java.util.HashMap properties) throws java.io.IOException, javax.xml.transform.TransformerException
inputPath
- the path of the file to transformoutputPath
- the path to write the transformed filestylesheet
- the stylesheet to perform the transformationproperties
- properties to pass to the transformationjava.io.IOException
- for any I/O errorjavax.xml.transform.TransformerException
- if the stylesheet cannot be loaded or
appliedpublic static javax.xml.transform.Templates getStylesheet(java.io.File path) throws javax.xml.transform.TransformerException
path
- the stylesheet pathjavax.xml.transform.TransformerException
- if the stylesheet cannot be loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |