All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.docx4j.samples.AbstractSample Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.1.2
Show newest version
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