|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.fs.shell.CommandFormat
public class CommandFormat
Parse the args of a command and check the format of args.
Constructor Summary | |
---|---|
CommandFormat(String n,
int min,
int max,
String... possibleOpt)
constructor |
Method Summary | |
---|---|
boolean |
getOpt(String option)
Return if the option is set or not |
List<String> |
parse(String[] args,
int pos)
Parse parameters starting from the given position |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandFormat(String n, int min, int max, String... possibleOpt)
Method Detail |
---|
public List<String> parse(String[] args, int pos)
args
- an array of input argumentspos
- the position at which starts to parse
public boolean getOpt(String option)
option
- String representation of an option
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |