Class MailObject.Attachment

java.lang.Object
net.ideahut.springboot.mail.MailObject.Attachment
All Implemented Interfaces:
jakarta.activation.DataSource, Serializable
Enclosing class:
MailObject

public static class MailObject.Attachment extends Object implements jakarta.activation.DataSource, Serializable
See Also:
  • Constructor Details

    • Attachment

      public Attachment()
    • Attachment

      public Attachment(String name, byte[] data, String contentType)
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface jakarta.activation.DataSource
      Throws:
      IOException
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Specified by:
      getOutputStream in interface jakarta.activation.DataSource
      Throws:
      IOException