|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.harvard.cfa.vo.tapclient.tool.Client edu.harvard.cfa.vo.tapclient.tool.TapCli
public class TapCli
A TAP command line interface.
Nested Class Summary | |
---|---|
protected static class |
TapCli.SubCommand
The subcommands |
Constructor Summary | |
---|---|
TapCli()
Construct an SyncClient with the default Options. |
Method Summary | |
---|---|
java.util.Comparator |
getOptionComparator()
|
static void |
main(java.lang.String[] args)
Calls System.exit(0) on success Calls System.exit(1) on error |
void |
parse(java.lang.String[] args)
Parser the command line arguments |
protected void |
printHelp()
Writes the usage information to the output stream |
void |
run()
|
Methods inherited from class edu.harvard.cfa.vo.tapclient.tool.Client |
---|
checkRequired, createOptions, getBaseName, getCommandLine, getCommandLineSyntax, getOptions, getOutput, getVersion, isVerbose, printVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TapCli()
Client.createOptions()
Method Detail |
---|
public void parse(java.lang.String[] args) throws org.apache.commons.cli.ParseException
Client
parse
in class Client
args
- the command line arguments
org.apache.commons.cli.ParseException
- if an error occurs while parsing the command line argumentsClient.getOptions()
public void run() throws java.io.FileNotFoundException, org.apache.commons.cli.ParseException, HttpException, ResponseFormatException, java.io.IOException
run
in class Client
java.io.FileNotFoundException
org.apache.commons.cli.ParseException
HttpException
ResponseFormatException
java.io.IOException
protected void printHelp() throws java.io.FileNotFoundException
printHelp
in class Client
java.io.FileNotFoundException
- if an error occurs opening the output file.Client.getOutput()
public java.util.Comparator getOptionComparator()
getOptionComparator
in class Client
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |