|
org.netbeans.modules.sendopts/2 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.sendopts.CommandLine
public final class CommandLine
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.
Method Summary | |
---|---|
static CommandLine |
getDefault()
Getter for the default command line processor in the system. |
void |
process(String[] args)
Process the array of arguments and invoke associated OptionProcessor s. |
void |
process(String[] args,
InputStream is,
OutputStream os,
OutputStream err,
File currentDir)
Process the array of arguments and invoke associated OptionProcessor s. |
void |
usage(PrintWriter w)
Prints the usage information about options provided by associated OptionProcessor s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CommandLine getDefault()
OptionProcessor
s is taken from default
Lookup.getDefault.
public void process(String[] args) throws CommandException
OptionProcessor
s.
args
- the array of strings to process
CommandException
- if processing is not possible or failedpublic void process(String[] args, InputStream is, OutputStream os, OutputStream err, File currentDir) throws CommandException
OptionProcessor
s.
args
- the array of strings to processis
- the input stream that processors can reados
- the output stream that processors can write toerr
- the output stream that processors can send error messages tocurrentDir
- directory that processors should use as current user dir
CommandException
- if processing is not possible or failedpublic void usage(PrintWriter w)
OptionProcessor
s.
w
- the writer to output usage info to
|
org.netbeans.modules.sendopts/2 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |