|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.martiansoftware.jsap.StringParser com.martiansoftware.jsap.stringparsers.IntSizeStringParser
A StringParser
that works like LongSizeStringParser
, but
additionally checks that the result is not larger than Integer.MAX_VALUE
.
Method Summary | |
static IntSizeStringParser |
getParser()
Returns the only instance of an IntSizeStringParser . |
Object |
parse(String arg)
Parses the specified argument into an Object of the appropriate type. |
Methods inherited from class com.martiansoftware.jsap.StringParser |
setUp, tearDown |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IntSizeStringParser getParser()
IntSizeStringParser
.
Convenient access to the only instance returned by
this method is available through
JSAP.INTSIZE_PARSER
.
IntSizeStringParser
.public Object parse(String arg) throws ParseException
StringParser
parse
in class StringParser
arg
- the argument to convert to an Object of class appropriate to
the StringParser subclass.
ParseException
- if the specified argument cannot be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |