public class AlternateView extends AttachmentBase
Represents the format to view a message.
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.email.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.email.ms.System.Uri value) |
dispose, getContentId, getContentStream, getContentType, getTransferEncoding, save, save, saveRawContent, setContentId, setContentStream, setContentType, setTransferEncoding
public AlternateView(String fileName)
Initializes a new instance of the AlternateView
class.
fileName
- Name of the file.public AlternateView(String fileName, String mediaType)
Initializes a new instance of the AlternateView
class.
fileName
- Name of the file.mediaType
- Internet media type.public AlternateView(String fileName, ContentType contentType)
Initializes a new instance of the AlternateView
class.
fileName
- Name of the file.contentType
- Content type.public AlternateView(InputStream contentStream)
public AlternateView(InputStream contentStream, String mediaType)
public AlternateView(InputStream contentStream, ContentType contentType)
public LinkedResourceCollection getLinkedResources()
Gets the set of embedded resources referred to by this alternate view.
Value: The linked resources.public com.aspose.email.ms.System.Uri getBaseUri()
Gets or sets the base URI.
Value: The base URI.public void setBaseUri(com.aspose.email.ms.System.Uri value)
public static AlternateView createAlternateViewFromString(String content)
Creates a AlternateView of using the content specified in a string.
content
- The string that contains the content.public static AlternateView createAlternateViewFromString(String content, Charset contentEncoding, String mediaType)
public static AlternateView createAlternateViewFromString(String content, ContentType contentType)
Creates a AlternateView of using the content specified in a string.
content
- The string that contains the content.contentType
- Content type.public static AlternateView createAlternateViewFromString(String content, ContentType contentType, int transferencoding)
Creates a AlternateView of using the content specified in a string.
content
- The string that contains the content.contentType
- Content type.transferencoding
- The transfer encoding.Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.