KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > api > metadata > common > domain > ContentResource


1 package com.jaspersoft.jasperserver.api.metadata.common.domain;
2
3 import java.io.InputStream JavaDoc;
4 import java.util.List JavaDoc;
5
6 import com.jaspersoft.jasperserver.api.metadata.common.domain.Resource;
7 /*
8  * Copyright (C) 2006 JasperSoft http://www.jaspersoft.com
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed WITHOUT ANY WARRANTY; and without the
16  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17  * See the GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
21  * or write to:
22  *
23  * Free Software Foundation, Inc.,
24  * 59 Temple Place - Suite 330,
25  * Boston, MA USA 02111-1307
26  */

27
28 public interface ContentResource extends Resource
29 {
30     String JavaDoc TYPE_PDF = "pdf";
31     String JavaDoc TYPE_HTML = "html";
32     String JavaDoc TYPE_XLS = "xls";
33     String JavaDoc TYPE_RTF = "rtf";
34
35     boolean hasData();
36
37     InputStream JavaDoc getDataStream();
38
39     void readData(InputStream JavaDoc is);
40
41     byte[] getData();
42
43     void setData(byte[] data);
44
45     String JavaDoc getFileType();
46
47     void setFileType(String JavaDoc fileType);
48
49     boolean isReference();
50
51     String JavaDoc getReferenceURI();
52
53     void setReferenceURI(String JavaDoc referenceURI);
54
55     public List JavaDoc getResources();
56
57     public void setResources(List JavaDoc resources);
58
59     public void addChildResource(ContentResource child);
60
61 }
62
Popular Tags