| java.lang.Object org.netbeans.api.sendopts.CommandLine
CommandLine | final public class CommandLine (Code) | | A class for clients that have an array of strings and want to process
it - e.g. parse it and also invoke registered
OptionProcessor s.
author: Jaroslav Tulach |
Constructor Summary | |
| CommandLine() Use factory methods to create the line. |
CommandLine | CommandLine()(Code) | | Use factory methods to create the line.
|
process | public void process(String[] args, InputStream is, OutputStream os, OutputStream err, File currentDir) throws CommandException(Code) | | Process the array of arguments and invoke associated
OptionProcessor s.
Parameters: args - the array of strings to process Parameters: is - the input stream that processors can read Parameters: os - the output stream that processors can write to Parameters: err - the output stream that processors can send error messages to Parameters: currentDir - directory that processors should use as current user dir exception: CommandException - if processing is not possible or failed |
usage | public void usage(PrintWriter w)(Code) | | Prints the usage information about options provided by associated
OptionProcessor s.
Parameters: w - the writer to output usage info to since: 1.7 |
|
|