Ejemplo n.º 1
0
 /**
  * Writes the document
  *
  * @param out The <code>OutputStream</code> to write the RTF document to.
  */
 public void WriteDocument(Stream outs)
 {
     try {
         byte[] t;
         outs.Write(OPEN_GROUP, 0, OPEN_GROUP.Length);
         outs.Write(RtfDocument.RTF_DOCUMENT, 0, RtfDocument.RTF_DOCUMENT.Length);
         outs.Write(t = documentHeader.Write(), 0, t.Length);
         data.WriteTo(outs);
         outs.Write(CLOSE_GROUP, 0, CLOSE_GROUP.Length);
     } catch (IOException) {
     }
 }
 /// <summary>
 /// Writes the document
 /// </summary>
 /// <param name="outs">The  Stream  to write the RTF document to.</param>
 public void WriteDocument(Stream outs)
 {
     try
     {
         outs.Write(OpenGroup, 0, OpenGroup.Length);
         outs.Write(_rtfDocument, 0, _rtfDocument.Length);
         _documentHeader.WriteContent(outs);
         _data.WriteTo(outs);
         outs.Write(CloseGroup, 0, CloseGroup.Length);
     }
     catch (IOException)
     {
     }
 }