public class IntSizeStringParser extends StringParser
StringParser that works like LongSizeStringParser, but
additionally checks that the result is not larger than Integer.MAX_VALUE.| Modifier and Type | Method and Description |
|---|---|
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.
|
setUp, tearDownpublic 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
StringParserparse in class StringParserarg - the argument to convert to an Object of class appropriate to
the StringParser subclass.ParseException - if the specified argument cannot be parsed.Copyright © 2016. All rights reserved.