public abstract class ToolRunnerBase extends Object
Constructor and Description |
---|
ToolRunnerBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract SimpleCmdlineTool |
makeMyTool()
Factory method.
|
void |
runTheTool(String... args)
Passes (command line) parameters to the tool.
|
protected void |
showMessage(String msg)
A template method implementing default behaviour for showing a message (send to stderr).
|
public ToolRunnerBase()
protected abstract SimpleCmdlineTool makeMyTool()
protected void showMessage(String msg)
msg
- The message to displaypublic void runTheTool(String... args)
args
- Usually a straight passing of the command line parameters from a "main" method.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.