Package ch.randelshofer.fastdoubleparser
Class JavaBigIntegerFromCharSequence
- java.lang.Object
-
- ch.randelshofer.fastdoubleparser.AbstractNumberParser
-
- ch.randelshofer.fastdoubleparser.AbstractBigIntegerParser
-
- ch.randelshofer.fastdoubleparser.JavaBigIntegerFromCharSequence
-
final class JavaBigIntegerFromCharSequence 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 JavaBigIntegerFromCharSequence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigIntegerparseBigIntegerString(java.lang.CharSequence str, int offset, int length, int radix)Parses aBigIntegerLiteralas specified inJavaBigIntegerParser.private java.math.BigIntegerparseDecDigits(java.lang.CharSequence str, int from, int to, boolean isNegative)private java.math.BigIntegerparseHexDigits(java.lang.CharSequence str, int from, int to, boolean isNegative)private java.math.BigIntegerparseManyDecDigits(java.lang.CharSequence str, int from, int to, boolean isNegative)private intskipZeroes(java.lang.CharSequence 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(java.lang.CharSequence 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(java.lang.CharSequence str, int from, int to, boolean isNegative)
-
parseHexDigits
private java.math.BigInteger parseHexDigits(java.lang.CharSequence str, int from, int to, boolean isNegative)
-
parseManyDecDigits
private java.math.BigInteger parseManyDecDigits(java.lang.CharSequence str, int from, int to, boolean isNegative)
-
skipZeroes
private int skipZeroes(java.lang.CharSequence str, int from, int to)
-
-