Package ch.randelshofer.fastdoubleparser
Class JavaBigIntegerFromCharArray
- java.lang.Object
-
- ch.randelshofer.fastdoubleparser.AbstractNumberParser
-
- ch.randelshofer.fastdoubleparser.AbstractBigIntegerParser
-
- ch.randelshofer.fastdoubleparser.JavaBigIntegerFromCharArray
-
final class JavaBigIntegerFromCharArray extends AbstractBigIntegerParser
-
-
Field Summary
-
Fields inherited from class ch.randelshofer.fastdoubleparser.AbstractBigIntegerParser
RECURSION_THRESHOLD
-
Fields inherited from class ch.randelshofer.fastdoubleparser.AbstractNumberParser
CHAR_TO_HEX_MAP, DECIMAL_POINT_CLASS, ILLEGAL_OFFSET_OR_ILLEGAL_LENGTH, OTHER_CLASS, SYNTAX_ERROR, SYNTAX_ERROR_BITS, VALUE_EXCEEDS_LIMITS
-
-
Constructor Summary
Constructors Constructor Description JavaBigIntegerFromCharArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigIntegerparseBigIntegerString(char[] str, int offset, int length, int radix)Parses aBigIntegerLiteralas specified inJavaBigIntegerParser.private java.math.BigIntegerparseDecDigits(char[] str, int from, int to, boolean isNegative)private java.math.BigIntegerparseHexDigits(char[] str, int from, int to, boolean isNegative)private java.math.BigIntegerparseManyDecDigits(char[] str, int from, int to, boolean isNegative)private intskipZeroes(char[] str, int from, int to)-
Methods inherited from class ch.randelshofer.fastdoubleparser.AbstractBigIntegerParser
checkDecBigIntegerBounds, checkHexBigIntegerBounds, hasManyDigits
-
Methods inherited from class ch.randelshofer.fastdoubleparser.AbstractNumberParser
charAt, charAt, charAt, checkBounds, checkBounds, lookupHex, lookupHex
-
-
-
-
Method Detail
-
parseBigIntegerString
public java.math.BigInteger parseBigIntegerString(char[] str, int offset, int length, int radix) throws java.lang.NumberFormatExceptionParses aBigIntegerLiteralas specified inJavaBigIntegerParser.- Returns:
- result (always non-null)
- Throws:
java.lang.NumberFormatException- if parsing fails
-
parseDecDigits
private java.math.BigInteger parseDecDigits(char[] str, int from, int to, boolean isNegative)
-
parseHexDigits
private java.math.BigInteger parseHexDigits(char[] str, int from, int to, boolean isNegative)
-
parseManyDecDigits
private java.math.BigInteger parseManyDecDigits(char[] str, int from, int to, boolean isNegative)
-
skipZeroes
private int skipZeroes(char[] str, int from, int to)
-
-