1 package org.springframework.beans; 2 3 import java.io.InputStream ; 4 5 import org.springframework.core.io.Resource; 6 7 11 public class ResourceTestBean { 12 13 private Resource resource; 14 15 private InputStream inputStream; 16 17 public ResourceTestBean() { 18 } 19 20 public ResourceTestBean(Resource resource, InputStream 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 inputStream) { 30 this.inputStream = inputStream; 31 } 32 33 public Resource getResource() { 34 return resource; 35 } 36 37 public InputStream getInputStream() { 38 return inputStream; 39 } 40 41 } 42 | Popular Tags |