code: public void setOutput(OutputStream os, String encoding) throws IOException {
  		if (os == null)
  			throw new IllegalArgumentException("output stream can not be null");
  		reset();
  		if (encoding != null) {
  			out = new OutputStreamWriter(os, encoding);
  		} else {
  			out = new OutputStreamWriter(os);
  		}
  	}
docs: Sets the output.
  
  @param os the os
  @param encoding the encoding
  @throws IOException Signals that an I/O exception has occurred.