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
-
Method Summary
-
Constructor Details
-
InputStreamDataSource
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfacejavax.activation.DataSource
-
getInputStream
- Specified by:
getInputStream
in interfacejavax.activation.DataSource
- Throws:
IOException
-
getName
- Specified by:
getName
in interfacejavax.activation.DataSource
-
getOutputStream
- Specified by:
getOutputStream
in interfacejavax.activation.DataSource
- Throws:
IOException
-