@Nonnull
	public static String toString(InputStream in, Charset charset, char[] buf) throws IOException {
		StringWriter writer;
		try (BufferedReader reader = toBufferedReader(in, charset, buf)) {
			writer = new StringWriter();
			copy(reader, writer, buf);
		}
		return writer.toString();
	}
Reads content of {@link InputStream} to a string.

@param in
		Stream to read from.
@param charset
		Charset that will be used to read data.
@param buf
		Buffer that is used to hold data.

@return Content of a stream as string.

@throws IOException
		When any I/O error occurs.
recaf-core/src/main/java/software/coley/recaf/util/IOUtil.java