Package org.frankframework.http
Class InputStreamDataSource
java.lang.Object
org.frankframework.http.InputStreamDataSource
- All Implemented Interfaces:
jakarta.activation.DataSource
-
Constructor Summary
ConstructorDescriptionInputStreamDataSource
(String contentType, InputStream inputStream) Use content type application/octet-stream in case it cannot be determined. -
Method Summary
-
Constructor Details
-
InputStreamDataSource
Use content type application/octet-stream in case it cannot be determined. See http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html#getContentType(): This method returns the MIME type of the data in the form of a string. It should always return a valid type. It is suggested that getContentType return "application/octet-stream" if the DataSource implementation can not determine the data type.
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfacejakarta.activation.DataSource
-
getInputStream
- Specified by:
getInputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-
getName
- Specified by:
getName
in interfacejakarta.activation.DataSource
-
getOutputStream
- Specified by:
getOutputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-