KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > pentaho > core > services > SimpleContentItem


1 /*
2  * Copyright 2006 Pentaho Corporation. All rights reserved.
3  * This software was developed by Pentaho Corporation and is provided under the terms
4  * of the Mozilla Public License, Version 1.1, or any later version. You may not use
5  * this file except in compliance with the license. If you need a copy of the license,
6  * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
7  * BI Platform. The Initial Developer is Pentaho Corporation.
8  *
9  * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11  * the license for the specific language governing your rights and limitations.
12  *
13  * @created Jul 11, 2005
14  * @author James Dixon
15  *
16  */

17
18 package org.pentaho.core.services;
19
20 import java.io.InputStream JavaDoc;
21 import java.io.OutputStream JavaDoc;
22 import java.io.Reader JavaDoc;
23 import java.util.Date JavaDoc;
24 import java.util.List JavaDoc;
25
26 import javax.activation.FileDataSource JavaDoc;
27
28 import org.pentaho.core.repository.IContentItem;
29 import org.pentaho.core.repository.content.ContentException;
30
31 public class SimpleContentItem implements IContentItem {
32
33     private String JavaDoc mimeType;
34
35     private OutputStream JavaDoc outputStream;
36
37     public SimpleContentItem(OutputStream JavaDoc outputStream) {
38         this.outputStream = outputStream;
39     }
40
41     public String JavaDoc getId() {
42         return null;
43     }
44
45     public String JavaDoc getPath() {
46         return null;
47     }
48
49     public String JavaDoc getName() {
50         return null;
51     }
52
53     public String JavaDoc getTitle() {
54         return null;
55     }
56
57     public String JavaDoc getMimeType() {
58         return mimeType;
59     }
60
61     public void setMimeType(String JavaDoc mimeType) {
62         this.mimeType = mimeType;
63     }
64
65     public String JavaDoc getUrl() {
66         return null;
67     }
68
69     public List JavaDoc getFileVersions() {
70         return null;
71     }
72
73     public void removeAllVersions() {
74     }
75
76     public void removeVersion(String JavaDoc fileId) {
77     }
78
79     public InputStream JavaDoc getInputStream() throws ContentException {
80         return null;
81     }
82
83     public Reader JavaDoc getReader() throws ContentException {
84         return null;
85     }
86
87     public OutputStream JavaDoc getOutputStream(String JavaDoc actionName) {
88         return outputStream;
89     }
90
91     public FileDataSource JavaDoc getDataSource() {
92         // TODO
93
return null;
94     }
95
96     public String JavaDoc getActionName() {
97         return null;
98     }
99
100     public String JavaDoc getFileId() {
101         return null;
102     }
103
104     public long getFileSize() {
105         return 0;
106     }
107
108     public Date JavaDoc getFileDateTime() {
109         return null;
110     }
111
112     public void makeTransient() {
113       // NOOP
114
}
115 }
116
Popular Tags