Class NumberConverter
java.lang.Object
com.dslplatform.compiler.client.json.NumberConverter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberdeserializeNumber(JsonReader reader) private static intparseNegativeInt(char[] buf, int position, int len, int i) private static NumberparseNegativeNumber(char[] buf, int position, int len) private static BigDecimalparseNumberGeneric(char[] buf, int len, int position) private static intparsePositiveInt(char[] buf, int position, int len, int i) private static NumberparsePositiveNumber(char[] buf, int position, int len, int i) private static NumberConverter.NumberInforeadLongNumber(JsonReader reader, char[] buf)
-
Field Details
-
POW_10
private static final double[] POW_10
-
-
Constructor Details
-
NumberConverter
NumberConverter()
-
-
Method Details
-
parseNumberGeneric
- Throws:
IOException
-
readLongNumber
private static NumberConverter.NumberInfo readLongNumber(JsonReader reader, char[] buf) throws IOException - Throws:
IOException
-
parsePositiveInt
- Throws:
IOException
-
parseNegativeInt
- Throws:
IOException
-
deserializeNumber
- Throws:
IOException
-
parsePositiveNumber
private static Number parsePositiveNumber(char[] buf, int position, int len, int i) throws IOException - Throws:
IOException
-
parseNegativeNumber
- Throws:
IOException
-