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
Log:
Added MultipartMessage example; correct directory is "examples" not "samples".

Modified:
    james/mime4j/trunk/src/site/xdoc/samples.xml

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 @@
     <body>
         <section name="Samples">
             <p>
-            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.
             </p>
             <table>
                     <tr>
@@ -43,7 +43,7 @@
                             <code>org.apache.james.mime4j.samples.tree.MessageTree</code>
                         </td>
                         <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
                             <blockquote>
                              <code>java org.apache.james.mime4j.samples.tree.MessageTree
path/to/message.msg</code>
@@ -64,12 +64,22 @@
                         <td>
                             <code>org.apache.james.mime4j.samples.dom.TextPlainMessage</code>
                         </td>
-                        <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.
                         </td>
                     </tr>
+                    <tr>
+                        <td>
+                            <code>org.apache.james.mime4j.samples.dom.MultipartMessage</code>
+                        </td>
+                        <td>Illustrate the use of Mime4j DOM API. This example creates
a
+                            multipart/mixed message that consists of a text/plain and an
image/png
+                            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>
                         <td>
                             <code>org.apache.james.mime4j.samples.sax.Mime2Sax</code>



Mime
View raw message