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