org.docx4j.samples.AbstractSample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j Show documentation
Show all versions of docx4j Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
package org.docx4j.samples;
public abstract class AbstractSample {
protected static String inputfilepath;
protected static String outputfilepath;
protected static void getInputFilePath(String[] args) throws IllegalArgumentException {
if (args.length==0) throw new IllegalArgumentException("Input file arg missing");
inputfilepath = args[0];
}
protected static void getOutputFilePath(String[] args) throws IllegalArgumentException {
if (args.length<2) throw new IllegalArgumentException("Output file arg missing");
outputfilepath = args[0];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy