KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > cms > Content


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.cms;
10
11 /**
12  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
13  * @version $Revision: 1.1 $
14  */

15 public class Content
16 {
17
18    private byte[] bytes;
19    private String JavaDoc mimeType;
20
21    public Content(byte[] bytes, String JavaDoc mimeType)
22    {
23       this.bytes = bytes;
24       this.mimeType = mimeType;
25    }
26
27    public byte[] getBytes()
28    {
29       return bytes;
30    }
31
32    public void setBytes(byte[] bytes)
33    {
34       this.bytes = bytes;
35    }
36
37    public String JavaDoc getMimeType()
38    {
39       return mimeType;
40    }
41
42    public void setMimeType(String JavaDoc mimeType)
43    {
44       this.mimeType = mimeType;
45    }
46 }
47
Popular Tags