Class Attachment

    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • getName

        public String getName()
        Returns the name for this attachment.
        Returns:
        the name.
        Since:
        8.1.0
      • setName

        public Attachment setName​(String name)
        Sets the name for this attachment.
        Parameters:
        name - the name.
        Since:
        8.1.0
      • getContentType

        public String getContentType()
        Returns the MIME content type for this attachment.
        Returns:
        the MIME content type.
        Since:
        8.1.0
      • setContentType

        public Attachment setContentType​(String contentType)
        Sets the MIME content type for this attachment.
        Parameters:
        contentType - the MIME content type.
        Since:
        8.1.0
      • getContentProvider

        public IInputStreamProvider getContentProvider()
        Returns the content data for this attachment.
        Returns:
        the content data for this attachment.
        Since:
        8.1.0
      • setContentProvider

        public Attachment setContentProvider​(IInputStreamProvider contentProvider)
        Sets the content data for this attachment.
        Parameters:
        content - the content data.
        Since:
        8.1.0