code: public void setOutput(Writer output, boolean close)
  	{
  		reset();
  		w = new BufferedWriter(output);
  		closeWriter = close;
  	}
docs: /* (non-Javadoc)
  @see tuwien.auto.calimero.xml.XMLWriter#setOutput(java.io.Writer, boolean)