public final class BigDecimalParser extends Object
BigDecimal for REALLY
big values (over 500 characters).
This class is not meant to be used directly. It is designed to be used by Jackson JSON parsers (and parsers for other Jackson supported data formats). The parsers check for invalid characters and the length of the number. Without these checks, this parser is susceptible to performing badly with invalid inputs. If you need to parse numbers directly, please use JavaBigDecimalParser in fastdoubleparser instead.
Based on ideas from this this git commit.
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
parse(char[] chars)
Internal Jackson method.
|
static BigDecimal |
parse(char[] chars,
int off,
int len)
Internal Jackson method.
|
static BigDecimal |
parse(String valueStr)
Internal Jackson method.
|
static BigDecimal |
parseWithFastParser(char[] ch,
int off,
int len)
Internal Jackson method.
|
static BigDecimal |
parseWithFastParser(String valueStr)
Internal Jackson method.
|
public static BigDecimal parse(String valueStr)
Note: Caller MUST pre-validate that given String represents a valid representation
of BigDecimal value: parsers in jackson-core do that; other
code must do the same.
valueStr - NumberFormatExceptionpublic static BigDecimal parse(char[] chars, int off, int len)
Note: Caller MUST pre-validate that given String represents a valid representation
of BigDecimal value: parsers in jackson-core do that; other
code must do the same.
NumberFormatExceptionpublic static BigDecimal parse(char[] chars)
Note: Caller MUST pre-validate that given String represents a valid representation
of BigDecimal value: parsers in jackson-core do that; other
code must do the same.
chars - NumberFormatExceptionpublic static BigDecimal parseWithFastParser(String valueStr)
Note: Caller MUST pre-validate that given String represents a valid representation
of BigDecimal value: parsers in jackson-core do that; other
code must do the same.
valueStr - NumberFormatExceptionpublic static BigDecimal parseWithFastParser(char[] ch, int off, int len)
Note: Caller MUST pre-validate that given String represents a valid representation
of BigDecimal value: parsers in jackson-core do that; other
code must do the same.
NumberFormatExceptionCopyright © 2008–2025 FasterXML. All rights reserved.