public abstract class InOutToolOptions extends Object
Constructor and Description |
---|
InOutToolOptions() |
Modifier and Type | Method and Description |
---|---|
String[] |
getAllInputs() |
String |
getInput() |
String |
getInputFile() |
String |
getOutput() |
boolean |
isContinue() |
boolean |
isForce() |
boolean |
overwriteOutput() |
static <T> void |
prepareMultivaluedArgument(List<T> modeOptions,
T... defaults)
Fixes a problem with args4j with multivalued arguments being preserved
within the same JVM
|
void |
setInput(String input)
When the input file is set, any existing input file LIST file is removed
(anything from -if)
|
void |
setInputFile(String inputFile) |
void |
setOutput(String output) |
public InOutToolOptions()
public void setInput(String input)
input
- new input locationpublic boolean overwriteOutput()
@SafeVarargs public static <T> void prepareMultivaluedArgument(List<T> modeOptions, T... defaults)
T
- modeOptions
- defaults
- optional default values if the modeoptions is emptypublic boolean isForce()
public boolean isContinue()
public String[] getAllInputs()
public String getInputFile()
public void setInputFile(String inputFile)
inputFile
- the new input file