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. |
java.lang.Object |
parse(java.lang.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 java.lang.Object parse(java.lang.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 © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap