Class InputStreamDataSource
java.lang.Object
edu.ucsb.nceas.metacat.restservice.InputStreamDataSource
- All Implemented Interfaces:
javax.activation.DataSource
Encapsulate an InputStream within a DataSource interface so that it is
accessible to MIME processors.
- Author:
- Matthew Jones
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InputStreamDataSource
-
-
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
-