Class OutlookMessageAttachment


  • public class OutlookMessageAttachment
    extends java.lang.Object
    Represents a message attachment.
    Author:
    Cedric Tabin
    • Constructor Detail

      • OutlookMessageAttachment

        public OutlookMessageAttachment​(java.lang.String name,
                                        java.lang.String mimeType,
                                        OutlookMessageAttachment.InputStreamCreator creator)
        Creates a new OutlookMessageAttachment with the specified parameters.
        Parameters:
        name - The attachment's name.
        mimeType - The MIME type of the attachment.
        creator - The InputStreamCreator or null.
      • OutlookMessageAttachment

        public OutlookMessageAttachment​(java.lang.String name,
                                        java.lang.String mimeType,
                                        java.io.InputStream input)
        Creates a new OutlookMessageAttachment with the specified parameters. A new MemoryInputStreamCreator will be created with the specified input as source.
        Parameters:
        name - The attachment's name.
        mimeType - The MIME type of the attachment.
        input - The input or null.
        See Also:
        OutlookMessageAttachment.MemoryInputStreamCreator
    • Method Detail

      • getName

        public final java.lang.String getName()
        Returns the name of the attachment, as seen by the user. This value cannot be null nor empty.
        Returns:
        The name of the attachment.
      • getMimeType

        public java.lang.String getMimeType()
        Defines the MIME type of the attachment.
      • setMimeType

        public void setMimeType​(java.lang.String mimeType)