james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r741936 - /james/mime4j/trunk/src/site/xdoc/samples.xml
Date Sat, 07 Feb 2009 18:56:18 GMT
Author: mwiederkehr
Date: Sat Feb  7 18:56:18 2009
New Revision: 741936

URL: http://svn.apache.org/viewvc?rev=741936&view=rev
Added MultipartMessage example; correct directory is "examples" not "samples".


Modified: james/mime4j/trunk/src/site/xdoc/samples.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/site/xdoc/samples.xml?rev=741936&r1=741935&r2=741936&view=diff
--- james/mime4j/trunk/src/site/xdoc/samples.xml (original)
+++ james/mime4j/trunk/src/site/xdoc/samples.xml Sat Feb  7 18:56:18 2009
@@ -27,11 +27,11 @@
         <section name="Samples">
-            The mime4j distribution includes samples
+            The Mime4j distribution includes samples
             which demonstrate how the library could be used. This section
             gives you a short review of those samples. For more information
             you should download the distribution and study the sample sources.
-            The samples are in in <code>samples/</code> sub-directory.
+            The samples are in the <code>examples/</code> sub-directory.
@@ -43,7 +43,7 @@
                         <td>Displays a tree of the contents of a
-                            mime4j <code>Message</code> object in a Swing GUI.
+                            Mime4j <code>Message</code> object in a Swing GUI.
                             To try it out run
                              <code>java org.apache.james.mime4j.samples.tree.MessageTree
@@ -64,12 +64,22 @@
-                        <td>Illustrate the use of mime4j DOM API. This example generates
a message 
+                        <td>Illustrate the use of Mime4j DOM API. This example generates
a message 
                         very similar to the one from 
                         <a href="http://www.rfc-editor.org/rfc/rfc5322.txt">RFC 5322</a>
                         Appendix A.1.1.
+                    <tr>
+                        <td>
+                            <code>org.apache.james.mime4j.samples.dom.MultipartMessage</code>
+                        </td>
+                        <td>Illustrate the use of Mime4j DOM API. This example creates
+                            multipart/mixed message that consists of a text/plain and an
+                            part. The image is created on the fly; a similar technique can
be used
+                            to create PDF or XML attachments, for example.
+                        </td>
+                    </tr>
                <!--      <tr>

View raw message