Returns the next byte in the buffer as a char. Returns -1 or 0xffff if nothing is there. @webref client @usage application @webBrief Returns the next byte in the buffer as a char
()
| 398 | * @webBrief Returns the next byte in the buffer as a char |
| 399 | */ |
| 400 | public char readChar() { |
| 401 | synchronized (bufferLock) { |
| 402 | if (bufferIndex == bufferLast) return (char) (-1); |
| 403 | return (char) read(); |
| 404 | } |
| 405 | } |
| 406 | |
| 407 | |
| 408 | /** |