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.

@FunctionalInterface public static interface SmtpAttachment.StreamProvider
Provides an InputStream to read the attachment content.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new InputStream.
  • Method Details

    • openStream

      InputStream openStream() throws IOException, jakarta.mail.MessagingException
      Returns a new InputStream. The behavior is implementation dependent.
      Returns:
      A InputStream instance.
      Throws:
      IOException
      jakarta.mail.MessagingException