Package ddf.common
Class ResourceDataSource
java.lang.Object
ddf.common.ResourceDataSource
- All Implemented Interfaces:
javax.activation.DataSource
The Class ProductDataSource.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceDataSource(ddf.catalog.resource.Resource resource) Create a new product data source. -
Method Summary
-
Constructor Details
-
ResourceDataSource
public ResourceDataSource(ddf.catalog.resource.Resource resource) Create a new product data source.- Parameters:
resource-
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfacejavax.activation.DataSource
-
getInputStream
- Specified by:
getInputStreamin interfacejavax.activation.DataSource- Throws:
IOException
-
getName
- Specified by:
getNamein interfacejavax.activation.DataSource
-
getOutputStream
- Specified by:
getOutputStreamin interfacejavax.activation.DataSource- Throws:
IOException
-
toString
-