Package ch.astorm.smtp4j.core
Interface SmtpAttachment.StreamProvider
- Enclosing class:
- SmtpAttachment
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides an
InputStream to read the attachment content.-
Method Summary
-
Method Details
-
openStream
Returns a newInputStream. The behavior is implementation dependent.- Returns:
- A
InputStreaminstance. - Throws:
IOExceptionjakarta.mail.MessagingException
-