jodd-servlet/src/main/java/jodd/servlet/wrapper/BufferResponseWrapper.java
public void writeContentToResponse(final char[] content) throws IOException {
		if (buffer == null) {
			return;
		}
		if (buffer.isUsingStream()) {
			ServletOutputStream outputStream = getResponse().getOutputStream();

			String encoding = getContentTypeEncoding();
			if (encoding == null) {
				outputStream.write(CharUtil.toByteArray(content));
			} else {
				outputStream.write(CharUtil.toByteArray(content, encoding));
			}

			outputStream.flush();
		} else {
			Writer out = getResponse().getWriter();
			out.write(content);
			out.flush();
		}
	}
public void writeContentToResponse(final char[] content) throws IOException {
		if (buffer == null) {
			return;
		}
		if (buffer.isUsingStream()) {
			ServletOutputStream outputStream = getResponse().getOutputStream();

			String encoding = getContentTypeEncoding();
			if (encoding == null) {
				outputStream.write(CharUtil.toByteArray(content));
			} else {
				outputStream.write(CharUtil.toByteArray(content, encoding));
			}

			outputStream.flush();
		} else {
			Writer out = getResponse().getWriter();
			out.write(content);
			out.flush();
		}
	}
Writes content to original output stream, using either output stream or writer, depending
on how the content was buffered. It is assumed that provided content is a modified
wrapped content.