Extract a long number, starting at the current position. Updates the internal index to beyond the number. Returns -1 if a long number was not found. @return a long
()
| 358 | * @return a long |
| 359 | */ |
| 360 | public long readLong() { |
| 361 | // Skip leading spaces |
| 362 | skipSpaces(); |
| 363 | |
| 364 | int start = index; |
| 365 | while (index < size && Character.isDigit((char)buffer[index])) |
| 366 | index++; |
| 367 | |
| 368 | if (index > start) { |
| 369 | try { |
| 370 | return ASCIIUtility.parseLong(buffer, start, index); |
| 371 | } catch (NumberFormatException nex) { } |
| 372 | } |
| 373 | |
| 374 | return -1; |
| 375 | } |
| 376 | |
| 377 | /** |
| 378 | * Extract a NSTRING, starting at the current position. Return it as |
no test coverage detected