public class ResourceDataSource extends Object implements DataSource
| Constructor and Description |
|---|
ResourceDataSource(Resource resource)
Create a new product data source.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
String |
toString() |
public ResourceDataSource(Resource resource)
resource - public String getContentType()
getContentType in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.