com.aspose.email
Class AlternateView

java.lang.Object
  extended by com.aspose.email.AttachmentBase
      extended by com.aspose.email.AlternateView
All Implemented Interfaces:
com.aspose.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
static AlternateView createAlternateViewFromString(String content)
           Creates a AlternateView of using the content specified in a string.
static AlternateView createAlternateViewFromString(String content, Charset contentEncoding, String mediaType)
           
static AlternateView createAlternateViewFromString(String content, ContentType contentType)
           Creates a AlternateView of using the content specified in a string.
static AlternateView createAlternateViewFromString(String content, ContentType contentType, int transferencoding)
           Creates a AlternateView of using the content specified in a string.
 com.aspose.ms.System.Uri getBaseUri()
           Gets or sets the base URI.
 LinkedResourceCollection getLinkedResources()
           Gets the set of embedded resources referred to by this alternate view.
 void setBaseUri(com.aspose.ms.System.Uri value)
           
 
Methods inherited from class com.aspose.email.AttachmentBase
dispose, getContentId, getContentStream, getContentType, getTransferEncoding, save, save, saveRawContent, setContentId, setContentStream, setContentType, setTransferEncoding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

AlternateView

public AlternateView(InputStream contentStream,
                     String mediaType)

AlternateView

public AlternateView(InputStream contentStream,
                     ContentType contentType)
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.ms.System.Uri getBaseUri()

Gets or sets the base URI.

Value: The base URI.


setBaseUri

public void setBaseUri(com.aspose.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,
                                                          Charset contentEncoding,
                                                          String mediaType)

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.


Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.