|
||||||||||
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.BigIntegerStringParser
A StringParser
for parsing BigIntegers. The parse() method delegates the
actual
parsing to BigInteger's constructor.
StringParser
,
BigInteger
Constructor Summary | |
BigIntegerStringParser()
Deprecated. Use getParser() or, even better, JSAP.BIGINTEGER_PARSER . |
Method Summary | |
static BigIntegerStringParser |
getParser()
Returns a BigIntegerStringParser . |
Object |
parse(String arg)
Parses the specified argument into a BigInteger. |
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 |
Constructor Detail |
public BigIntegerStringParser()
getParser()
or, even better, JSAP.BIGINTEGER_PARSER
.
Method Detail |
public static BigIntegerStringParser getParser()
BigIntegerStringParser
.
Convenient access to the only instance returned by
this method is available through
JSAP.BIGINTEGER_PARSER
.
BigIntegerStringParser
.public Object parse(String arg) throws ParseException
new BigInteger(String)
. If BigInteger
throws a
NumberFormatException, it is encapsulated into a ParseException and
re-thrown.
parse
in class StringParser
arg
- the argument to parse
ParseException
- if new BigInteger(arg)
throws a
NumberFormatException.BigInteger
,
StringParser.parse(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |