public HtmlWriter (Stream stream, Encoding encoding) { if (stream == null) throw new ArgumentNullException ("stream"); if (encoding == null) throw new ArgumentNullException ("encoding"); html = new StreamWriter (stream, encoding, 4096); }