Read and consume the next character from the input. @return the next input character as an unsigned UTF-16 code unit (0-65535); #EOF if input is exhausted
()
| 105 | * input is exhausted |
| 106 | */ |
| 107 | public int read() { |
| 108 | int next = position + 1; |
| 109 | if (next < filled) { |
| 110 | position = next; |
| 111 | return buffer[next]; |
| 112 | } |
| 113 | return fill() ? buffer[++position] : EOF; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Attempt to consume the body of a JSON string (with the leading quote already consumed) directly |