code: public static String readAllToString(final InputStream in) throws IOException {
      return new String(readAllToBytes(in), StandardCharsets.UTF_8);
    }
docs: Reads the entire {@link InputStream} to EOF and returns the data as a string.
  
  @param in the stream to read.
  @return the read data as a string.
  @throws IOException in the event the data cannot be read.