public class BigIntegerStringParser extends StringParser
StringParser for parsing BigIntegers. The parse() method delegates the
actual
parsing to BigInteger's constructor.StringParser,
BigInteger| Constructor and Description |
|---|
BigIntegerStringParser()
Deprecated.
Use
getParser() or, even better, JSAP.BIGINTEGER_PARSER. |
| Modifier and Type | Method and Description |
|---|---|
static BigIntegerStringParser |
getParser()
Returns a
BigIntegerStringParser. |
Object |
parse(String arg)
Parses the specified argument into a BigInteger.
|
setUp, tearDownpublic BigIntegerStringParser()
getParser() or, even better, JSAP.BIGINTEGER_PARSER.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 StringParserarg - the argument to parseParseException - if new BigInteger(arg) throws a
NumberFormatException.BigInteger,
StringParser.parse(String)Copyright © 2016. All rights reserved.