Code example for PrintWriter

Methods: print, println

0
	 * @param inputBufferReader 
	 * @param outputPrintWriter 
	 * @param completeHeader 
	 */ 
	public static void handle(BufferedReader inputBufferReader, PrintWriter outputPrintWriter, StringBuilder completeHeader) { 
		outputPrintWriter.println("HTTP/1.1 200 OK\r\n"); 
		 
		StringBuilder htmlData; 
		htmlData = new StringBuilder(); 
		htmlData.append("<HTML>"); 
		htmlData.append("<HEAD><Title>Webmail</Title><META http-equiv=Content-Type content=\"text/html; charset=utf-8\"></HEAD>"); 
		htmlData.append("<BODY bgcolor=\"#ff9900\">"); 
		htmlData.append("<H1>"); 
		htmlData.append(Configuration.INSTANCE.getCurrentText()); 
		htmlData.append("</H1>"); 
		htmlData.append("</BODY>"); 
		htmlData.append("</HTML>"); 
		 
		outputPrintWriter.print(htmlData); 
		 
	} 
 
}