net.sf.kernow.transform
Class DirectoryTransformer
java.lang.Object
net.sf.kernow.transform.DirectoryTransformer
- All Implemented Interfaces:
- CancelObserver, ObservableProgress
public class DirectoryTransformer
- extends java.lang.Object
- implements ObservableProgress, CancelObserver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryTransformer
public DirectoryTransformer()
- Creates a new instance of DirectoryTransformer
runDirectoryTransform
public boolean runDirectoryTransform(java.io.File inputDir,
javax.xml.transform.Source stylesheet,
java.io.File outputDir)
- Takes an input folder, a stylesheet and an output folder and transforms
each input file with a compiled version of the stylesheet.
- Parameters:
inputDir
- the source directory contains the XML filesstylesheet
- the path to the stylesheetoutputDir
- the target output directory for the transformations
updateCancelStatus
public void updateCancelStatus(Cancellable c)
- Specified by:
updateCancelStatus
in interface CancelObserver
getProgressText
public java.lang.String getProgressText()
- Specified by:
getProgressText
in interface ObservableProgress
getPercentComplete
public int getPercentComplete()
- Specified by:
getPercentComplete
in interface ObservableProgress