|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.harvest.HarvestLauncher
public class HarvestLauncher
Wrapper class of the Harvest tool that handles the command-line processing.
Field Summary |
---|
Fields inherited from interface gov.nasa.pds.harvest.commandline.options.HarvestFlags |
---|
ARGNAME, HELP, LOG, LONG, PASSWORD, REPORT, SHORT, USERNAME, VERSION, WHATIS_HELP, WHATIS_LOG, WHATIS_PASSWORD, WHATIS_REPORT, WHATIS_USERNAME, WHATIS_VERSION |
Constructor Summary | |
---|---|
HarvestLauncher()
Default constructor. |
Method Summary | |
---|---|
void |
displayHelp()
Displays tool usage. |
void |
displayVersion()
Displays the current version and disclaimer notice. |
static void |
main(String[] args)
|
org.apache.commons.cli.CommandLine |
parse(String[] args)
A method to parse the command-line arguments |
void |
query(org.apache.commons.cli.CommandLine line)
Examines the command-line arguments passed into the Harvest Tool and takes the appropriate action based on what flags were set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HarvestLauncher()
Method Detail |
---|
public org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException, InvalidOptionException
args
- The command-line arguments
org.apache.commons.cli.ParseException
InvalidOptionException
public void query(org.apache.commons.cli.CommandLine line) throws Exception
line
- A class representation of the command-line arguments.
Exception
public void displayVersion() throws IOException
IOException
public void displayHelp()
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |