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