com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class Attachment

    • Method Detail

      • isEmbeddedMessage

        public final boolean isEmbeddedMessage()
      • getName

        public final String getName()

        Gets or sets an attachment name

        Specified by:
        getName in interface IAttachment
      • setName

        public final void setName(String value)

        Gets or sets an attachment name

        Specified by:
        setName in interface IAttachment
      • getNameEncoding

        public final Charset getNameEncoding()

        Gets or sets an encoding of attachment name

      • setNameEncoding

        public final void setNameEncoding(Charset value)

        Gets or sets an encoding of attachment name

      • getContentDisposition

        public final ContentDisposition getContentDisposition()

        Gets Content-Disposition header

      • isUri

        public final boolean isUri()

        Gets a value indicating whether attachment is URI-attachment.

      • createAttachmentFromString

        public static Attachment createAttachmentFromString(String content,
                                            String name)

        Creates the attachment from string.

        Parameters:
        content - A string that represents the content of attachment.
        name - The attachment name.
        Returns:
        Returns created attachment
      • createAttachmentFromString

        public static Attachment createAttachmentFromString(String content,
                                            String name,
                                            Charset contentEncoding,
                                            String mediaType)

        Creates the attachment from string.

        Parameters:
        content - A string that represents the content of attachment.
        name - The attachment name.
        contentEncoding - The content encoding.
        mediaType - The media type name
        Returns:
        Returns created attachment