1 package net.firstpartners.nounit.report; 2 3 26 27 import java.io.File ; 28 import java.io.FileNotFoundException ; 29 import java.io.IOException ; 30 31 import javax.xml.transform.TransformerConfigurationException ; 32 import javax.xml.transform.TransformerException ; 33 34 import net.firstpartners.nounit.ui.common.CommandPackage; 35 import net.firstpartners.nounit.utility.NoUnitException; 36 37 38 42 abstract public class AbstractReport 43 implements IReport { 44 45 54 abstract public void makeReport(CommandPackage inPackage) 55 throws TransformerException , TransformerConfigurationException , 56 IOException , FileNotFoundException , NoUnitException ; 57 58 59 67 protected void transformFile( File xmlFile, File xslFile , File outFile) 68 { 69 70 String args[] = new String [6]; 72 args[0]="-IN"; 73 args[1]=xmlFile.toString(); 74 args[2]="-xsl"; 75 args[3]=xslFile.toString(); 76 args[4]="-OUT"; 77 args[5]=outFile.toString(); 78 79 org.apache.xalan.xslt.Process.main(args); 81 82 } 83 84 } 85 | Popular Tags |