src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/IOUtils.java
public static String read(final Reader reader) {
		final BufferedReader buffer = new BufferedReader(reader, BUFFER_SIZE);

		try {
			StringBuilder sb = new StringBuilder();
			String line;
			boolean started = false;

			// Read line by line
			while ((line = buffer.readLine()) != null) {
				if (started) {
					sb.append(LINE_SEPARATOR);
				}

				sb.append(line);
				started = true;
			}

			return sb.toString();
		}
		catch (IOException ex) {
			throw new MustacheIOException(ex);
		}
		finally {
			closeQuietly(buffer);
		}
	}
public static String read(final Reader reader) {
		final BufferedReader buffer = new BufferedReader(reader, BUFFER_SIZE);

		try {
			StringBuilder sb = new StringBuilder();
			String line;
			boolean started = false;

			// Read line by line
			while ((line = buffer.readLine()) != null) {
				if (started) {
					sb.append(LINE_SEPARATOR);
				}

				sb.append(line);
				started = true;
			}

			return sb.toString();
		}
		catch (IOException ex) {
			throw new MustacheIOException(ex);
		}
		finally {
			closeQuietly(buffer);
		}
	}
Read input reader: extract content and return it as
a String.

@param reader Reader input.
@return String content.
@throws MustacheIOException If an IO exception occurs during reading operation.