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 DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public String getName()
getName
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
This work is licensed under a Creative Commons Attribution 4.0 International License.