com.aspose.email

com.aspose.email

Class AlternateView

All Implemented Interfaces:
com.aspose.email.ms.System.IDisposable
Direct Known Subclasses:
Calendar
public class AlternateView
extends AttachmentBase

Represents the format to view a message.

Constructor Summary
AlternateView(InputStream contentStream)
AlternateView(InputStream contentStream, ContentType contentType)
AlternateView(InputStream contentStream, String mediaType)
AlternateView(String fileName)
Initializes a new instance of the AlternateView class.
AlternateView(String fileName, ContentType contentType)
Initializes a new instance of the AlternateView class.
AlternateView(String fileName, String mediaType)
Initializes a new instance of the AlternateView class.
 
Method Summary
createAlternateViewFromString(String content)
Creates a AlternateView of using the content specified in a string.
createAlternateViewFromString(String content, Charset contentEncoding, String mediaType)
createAlternateViewFromString(String content, ContentType contentType)
Creates a AlternateView of using the content specified in a string.
createAlternateViewFromString(String content, ContentType contentType, inttransferencoding)
Creates a AlternateView of using the content specified in a string.
com.aspose.email.ms.System.Uri
getBaseUri()
Gets or sets the base URI.
getLinkedResources()
Gets the set of embedded resources referred to by this alternate view.
void
setBaseUri(com.aspose.email.ms.System.Urivalue)
 
Methods inherited from class com.aspose.email.AttachmentBase
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • AlternateView

        public AlternateView(String fileName)

        Initializes a new instance of the AlternateView class.

        Parameters:
        fileName - Name of the file.
      • AlternateView

        public AlternateView(String fileName,
                             String mediaType)

        Initializes a new instance of the AlternateView class.

        Parameters:
        fileName - Name of the file.
        mediaType - Internet media type.
      • AlternateView

        public AlternateView(String fileName,
                             ContentType contentType)

        Initializes a new instance of the AlternateView class.

        Parameters:
        fileName - Name of the file.
        contentType - Content type.
      • AlternateView

        public AlternateView(InputStream contentStream)
    • Method Detail

      • getLinkedResources

        public LinkedResourceCollection getLinkedResources()

        Gets the set of embedded resources referred to by this alternate view.

        Value: The linked resources.

      • getBaseUri

        public com.aspose.email.ms.System.Uri getBaseUri()

        Gets or sets the base URI.

        Value: The base URI.

      • setBaseUri

        public void setBaseUri(com.aspose.email.ms.System.Uri value)
      • createAlternateViewFromString

        public static AlternateView createAlternateViewFromString(String content)

        Creates a AlternateView of using the content specified in a string.

        Parameters:
        content - The string that contains the content.
        Returns:
        An AlternateView object that represents an alternate view.
      • createAlternateViewFromString

        public static AlternateView createAlternateViewFromString(String content,
                                                                  ContentType contentType)

        Creates a AlternateView of using the content specified in a string.

        Parameters:
        content - The string that contains the content.
        contentType - Content type.
        Returns:
        An AlternateView object that represents an alternate view.
      • createAlternateViewFromString

        public static AlternateView createAlternateViewFromString(String content,
                                                                  ContentType contentType,
                                                                  int transferencoding)

        Creates a AlternateView of using the content specified in a string.

        Parameters:
        content - The string that contains the content.
        contentType - Content type.
        transferencoding - The transfer encoding.
        Returns:
        An AlternateView object that represents an alternate view.