Package org.ametys.core.util.mail
Class InputStreamDataSource
java.lang.Object
org.ametys.core.util.mail.InputStreamDataSource
- All Implemented Interfaces:
jakarta.activation.DataSource
The input stream data source
-
Constructor Summary
ConstructorsConstructorDescriptionInputStreamDataSource(SendMailHelper.NamedStream attachment) The constructor of the input stream data source -
Method Summary
-
Constructor Details
-
InputStreamDataSource
The constructor of the input stream data source- Parameters:
attachment- the attachment as stream- Throws:
IOException- if an error occurred
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin interfacejakarta.activation.DataSource- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfacejakarta.activation.DataSource- Throws:
IOException
-
getContentType
- Specified by:
getContentTypein interfacejakarta.activation.DataSource
-
getName
- Specified by:
getNamein interfacejakarta.activation.DataSource
-
dispose
Dispose the input stream data source deleting the tmp file- Throws:
IOException- if an error occurred
-