jodd-servlet/src/main/java/jodd/servlet/wrapper/BufferResponseWrapper.java
public void print(final String string) throws IOException {
		if (isBufferStreamBased()) {
			String encoding = getContentTypeEncoding();
			byte[] bytes;

			if (encoding == null) {
				bytes = string.getBytes();
			} else {
				bytes = string.getBytes(encoding);
			}

			buffer.getOutputStream().write(bytes);
			return;
		}

		// make sure at least writer is initialized
		buffer.getWriter().write(string);
	}
public void print(final String string) throws IOException {
		if (isBufferStreamBased()) {
			String encoding = getContentTypeEncoding();
			byte[] bytes;

			if (encoding == null) {
				bytes = string.getBytes();
			} else {
				bytes = string.getBytes(encoding);
			}

			buffer.getOutputStream().write(bytes);
			return;
		}

		// make sure at least writer is initialized
		buffer.getWriter().write(string);
	}
public void print ( final String string ) throws IOException { if ( isBufferStreamBased ( ) ) { String encoding = getContentTypeEncoding ( ) ; byte [ ] bytes ; if ( encoding == null ) { bytes = string . getBytes ( ) ; } else { bytes = string . getBytes ( encoding ) ; } buffer . getOutputStream ( ) . write ( bytes ) ; return ; } // make sure at least writer is initialized buffer . getWriter ( ) . write ( string ) ; }
Appends string to the buffer.
Appends string to the buffer .