readUTF method

String readUTF()

Reads a UTF-8 string from the byte stream. The string is assumed to be prefixed with an unsigned short indicating the length in bytes.

Implementation

String readUTF() {
  int length = readUnsignedShort();
  return readUTFBytes(length);
}