( begin auto-generated from Client_readChar.xml ) Returns the next byte in the buffer as a char. Returns -1 or 0xffff if nothing is there. ( end auto-generated ) @webref client:client @usage application @brief Returns the next byte in the buffer as a char
()
| 413 | * @brief Returns the next byte in the buffer as a char |
| 414 | */ |
| 415 | public char readChar() { |
| 416 | synchronized (bufferLock) { |
| 417 | if (bufferIndex == bufferLast) return (char) (-1); |
| 418 | return (char) read(); |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | |
| 423 | /** |