public void setOutput ( OutputStream stream , String encoding ) throws UnsupportedEncodingException { if ( encoding == null ) { encoding = "UTF8" ; } java . io . Writer writer = new OutputStreamWriter ( stream , encoding ) ; fOut = new PrintWriter ( writer ) ; }
Sets the output stream for printing .