/** Writes the content to a stream. * @param os the stream * @throws DocumentException on error * @throws IOException on error */ virtual public void WriteTo(Stream os) { if (wrt == null) { wrt = new Wrt(os, this); } wrt.Write(); }