Class JavaBigIntegerFromCharSequence
java.lang.Object
ch.randelshofer.fastdoubleparser.AbstractNumberParser
ch.randelshofer.fastdoubleparser.AbstractBigIntegerParser
ch.randelshofer.fastdoubleparser.JavaBigIntegerFromCharSequence
-
Field Summary
Fields inherited from class AbstractBigIntegerParser
RECURSION_THRESHOLDFields inherited from class 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 -
Method Summary
Modifier and TypeMethodDescriptionparseBigIntegerString(CharSequence str, int offset, int length, int radix) Parses aBigIntegerLiteralas specified inJavaBigIntegerParser.private BigIntegerparseDecDigits(CharSequence str, int from, int to, boolean isNegative) private BigIntegerparseHexDigits(CharSequence str, int from, int to, boolean isNegative) private BigIntegerparseManyDecDigits(CharSequence str, int from, int to, boolean isNegative) private intskipZeroes(CharSequence str, int from, int to) Methods inherited from class AbstractBigIntegerParser
checkDecBigIntegerBounds, checkHexBigIntegerBounds, hasManyDigitsMethods inherited from class AbstractNumberParser
charAt, charAt, charAt, checkBounds, checkBounds, lookupHex, lookupHex
-
Constructor Details
-
JavaBigIntegerFromCharSequence
JavaBigIntegerFromCharSequence()
-
-
Method Details
-
parseBigIntegerString
public BigInteger parseBigIntegerString(CharSequence str, int offset, int length, int radix) throws NumberFormatException Parses aBigIntegerLiteralas specified inJavaBigIntegerParser.- Returns:
- result (always non-null)
- Throws:
NumberFormatException- if parsing fails
-
parseDecDigits
-
parseHexDigits
-
parseManyDecDigits
-
skipZeroes
-