()
| 124 | } |
| 125 | |
| 126 | public Object getNumber() throws IOException { |
| 127 | CharArr num = parser.getNumberChars(); |
| 128 | String numstr = num.toString(); |
| 129 | double d = Double.parseDouble(numstr); |
| 130 | if (!Double.isInfinite(d)) return Double.valueOf(d); |
| 131 | // TODO: use more efficient constructor in Java5 |
| 132 | return new BigDecimal(num.buf, num.start, num.size()); |
| 133 | } |
| 134 | |
| 135 | public Object getBigNumber() throws IOException { |
| 136 | CharArr num = parser.getNumberChars(); |
no test coverage detected