01: package de.java2html.commandline;
02:
03: import java.io.File;
04:
05: import de.java2html.converter.IJavaSourceConverter;
06: import de.java2html.options.JavaSourceConversionOptions;
07: import de.java2html.util.Ensure;
08:
09: /**
10: * @author Markus Gebhard
11: */
12: public class Java2HtmlFileConversion extends
13: AbstractJava2HtmlConversion {
14: private final File srcFile;
15: private final File targetFile;
16:
17: public Java2HtmlFileConversion(File srcFile, File targetFile,
18: IJavaSourceConverter converter,
19: JavaSourceConversionOptions options) {
20: super (converter, options);
21: Ensure.ensureArgumentNotNull(srcFile);
22: this .srcFile = srcFile;
23: this .targetFile = targetFile;
24: }
25:
26: public void execute() {
27: convertFile(srcFile, targetFile);
28: }
29: }
|