Class Attachment

java.lang.Object
com.adaptris.mail.Attachment

public final class Attachment extends Object
Attachment class.
  • Method Details

    • getBytes

      public byte[] getBytes()
      Get the underlying attachment as bytes.
      Returns:
      the attachment.
    • getFilename

      public String getFilename()
      Get the filename associated with this attachment.
      Returns:
      the filename (or null if not set).
    • getContentType

      public String getContentType()
      Get the contentType associated with this attachment.
      Returns:
      the contentType (or null if not set).
    • getEncoding

      public String getEncoding()
      Get the encoding for the attachment mime body part
      Returns:
      the encoding
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: