Class NumberLimits


  • public class NumberLimits
    extends java.lang.Object
    This class enforces limits on numbers parsed from Json5 to avoid potential performance problems when extremely large numbers are used.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.math.BigDecimal parseBigDecimal​(java.lang.String s)  
      static java.math.BigInteger parseBigInteger​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseBigDecimal

        public static java.math.BigDecimal parseBigDecimal​(java.lang.String s)
                                                    throws java.lang.NumberFormatException
        Throws:
        java.lang.NumberFormatException
      • parseBigInteger

        public static java.math.BigInteger parseBigInteger​(java.lang.String s)
                                                    throws java.lang.NumberFormatException
        Throws:
        java.lang.NumberFormatException