KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > parsec > rfc822 > Message


1 /*
2  * Created on Dec 20, 2004
3  *
4  * Author Ben Yu
5  */

6 package tests.jfun.parsec.rfc822;
7
8 /**
9  * @author Ben Yu
10  *
11  * Dec 20, 2004
12  */

13 public class Message {
14   private final Fields fields;
15   private final String JavaDoc body;
16   
17   /**
18    * @param fields
19    * @param body
20    */

21   Message(final Fields fields, final String JavaDoc body) {
22     super();
23     this.fields = fields;
24     this.body = body;
25   }
26   /**
27    * @return Returns the body.
28    */

29   public String JavaDoc getBody() {
30     return body;
31   }
32   /**
33    * @return Returns the fields.
34    */

35   public Fields getFields() {
36     return fields;
37   }
38 }
39
Popular Tags