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
ConstructorDescriptionInputStreamDataSource
(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:
getInputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-
getContentType
- Specified by:
getContentType
in interfacejakarta.activation.DataSource
-
getName
- Specified by:
getName
in interfacejakarta.activation.DataSource
-
dispose
Dispose the input stream data source deleting the tmp file- Throws:
IOException
- if an error occurred
-