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 Detail

      • openStream

        java.io.InputStream openStream()
                                throws java.io.IOException,
                                       jakarta.mail.MessagingException
        Throws:
        java.io.IOException
        jakarta.mail.MessagingException