code: public static String readTextAsString(DataInput in) throws IOException {
      int bufLen = (int)readVLong(in);
      byte[] buf = new byte[bufLen];
      in.readFully(buf);
  
      return new String(buf, StandardCharsets.UTF_8);
    }
docs: Deserialize a Hadoop Text object into a String