| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Command
This interface represents the generic functionality of a netCDF Tools command.
It forms part of a command pattern.
Copyright 2010, CSIRO Australia All rights reserved.
| Field Summary | |
|---|---|
| static long | MAX_32BIT_OFFSET_FILE_SIZEThe maximum file size, in bytes, before a 64-bit file offset is required. | 
| static int | PRINT_WIDTHThe column width for printing helps and usage statements. | 
| Method Summary | |
|---|---|
|  org.apache.commons.cli.Options | createOptions()Create the command line options for this command. | 
|  void | execute(String[] args)Run the command. | 
|  String | getCommandName() | 
|  String | getUsageString() | 
|  String | validCommand(String[] args)Determine if this command is valid, check its syntax. | 
| Field Detail | 
|---|
static final int PRINT_WIDTH
static final long MAX_32BIT_OFFSET_FILE_SIZE
| Method Detail | 
|---|
void execute(String[] args)
             throws org.apache.commons.cli.ParseException,
                    IOException
args - command line arguments.
org.apache.commons.cli.ParseException - thrown if the command line arguments can not be parsed.
IOException - thrown if netCDF can to be written to or read from.org.apache.commons.cli.Options createOptions()
String validCommand(String[] args)
args - command line arguments.
String getCommandName()
String getUsageString()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||