KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > beans > ResourceTestBean


1 package org.springframework.beans;
2
3 import java.io.InputStream JavaDoc;
4
5 import org.springframework.core.io.Resource;
6
7 /**
8  * @author Juergen Hoeller
9  * @since 01.04.2004
10  */

11 public class ResourceTestBean {
12
13     private Resource resource;
14
15     private InputStream JavaDoc inputStream;
16
17     public ResourceTestBean() {
18     }
19
20     public ResourceTestBean(Resource resource, InputStream JavaDoc inputStream) {
21         this.resource = resource;
22         this.inputStream = inputStream;
23     }
24
25     public void setResource(Resource resource) {
26         this.resource = resource;
27     }
28
29     public void setInputStream(InputStream JavaDoc inputStream) {
30         this.inputStream = inputStream;
31     }
32
33     public Resource getResource() {
34         return resource;
35     }
36
37     public InputStream JavaDoc getInputStream() {
38         return inputStream;
39     }
40
41 }
42
Popular Tags