edu.harvard.cfa.vo.tapclient.tool
Class TapCli

java.lang.Object
  extended by edu.harvard.cfa.vo.tapclient.tool.Client
      extended by edu.harvard.cfa.vo.tapclient.tool.TapCli

public class TapCli
extends Client

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

TapCli

public TapCli()
Construct an SyncClient with the default Options.

See Also:
Client.createOptions()
Method Detail

parse

public void parse(java.lang.String[] args)
           throws org.apache.commons.cli.ParseException
Description copied from class: Client
Parser the command line arguments

Overrides:
parse in class Client
Parameters:
args - the command line arguments
Throws:
org.apache.commons.cli.ParseException - if an error occurs while parsing the command line arguments
See Also:
Client.getOptions()

run

public void run()
         throws java.io.FileNotFoundException,
                org.apache.commons.cli.ParseException,
                HttpException,
                ResponseFormatException,
                java.io.IOException
Overrides:
run in class Client
Throws:
java.io.FileNotFoundException
org.apache.commons.cli.ParseException
HttpException
ResponseFormatException
java.io.IOException

printHelp

protected void printHelp()
                  throws java.io.FileNotFoundException
Writes the usage information to the output stream

Overrides:
printHelp in class Client
Throws:
java.io.FileNotFoundException - if an error occurs opening the output file.
See Also:
Client.getOutput()

getOptionComparator

public java.util.Comparator getOptionComparator()
Overrides:
getOptionComparator in class Client

main

public static void main(java.lang.String[] args)
Calls System.exit(0) on success Calls System.exit(1) on error