Package org.frankframework.util
Class MessageDataSource
java.lang.Object
org.frankframework.util.MessageDataSource
- All Implemented Interfaces:
jakarta.activation.DataSource
,Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionMessageDataSource
(Message message) MessageDataSource
(Message message, String newContentType) -
Method Summary
-
Constructor Details
-
MessageDataSource
- Throws:
IOException
-
MessageDataSource
- Throws:
IOException
-
-
Method Details
-
getContentType
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.- Specified by:
getContentType
in interfacejakarta.activation.DataSource
- Returns:
- "application/octet-stream" if the DataSource implementation can not determine the data type.
-
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
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-