ReadableBuffer.readUTF8

Reads a UTF-8 encoded String from the buffer starting the decode at the current position and reading until the limit is reached. The position is advanced to the limit once this method returns. If there is no bytes remaining in the buffer when this method is called a null is returned.

@return a string decoded from the remaining bytes in this buffer.

@throws CharacterCodingException if the encoding is invalid for any reason.

interface ReadableBuffer
string
readUTF8
()

Meta