Class NumberConverter


  • abstract class NumberConverter
    extends java.lang.Object
    • Field Detail

      • POW_10

        private static final double[] POW_10
    • Constructor Detail

      • NumberConverter

        NumberConverter()
    • Method Detail

      • parseNumberGeneric

        private static java.math.BigDecimal parseNumberGeneric​(char[] buf,
                                                               int len,
                                                               int position)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parsePositiveInt

        private static int parsePositiveInt​(char[] buf,
                                            int position,
                                            int len,
                                            int i)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseNegativeInt

        private static int parseNegativeInt​(char[] buf,
                                            int position,
                                            int len,
                                            int i)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeNumber

        public static java.lang.Number deserializeNumber​(JsonReader reader)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parsePositiveNumber

        private static java.lang.Number parsePositiveNumber​(char[] buf,
                                                            int position,
                                                            int len,
                                                            int i)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseNegativeNumber

        private static java.lang.Number parseNegativeNumber​(char[] buf,
                                                            int position,
                                                            int len)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException