public class LinkedResource extends AttachmentBase
Represents an embedded resource in a message.
Constructor and Description |
---|
LinkedResource(InputStream contentStream) |
LinkedResource(InputStream contentStream,
ContentType contentType) |
LinkedResource(InputStream contentStream,
String mediaType) |
LinkedResource(String fileName)
Initializes a new instance of the
LinkedResource class. |
LinkedResource(String fileName,
ContentType contentType)
Initializes a new instance of the
LinkedResource class. |
LinkedResource(String fileName,
String mediaType)
Initializes a new instance of the
LinkedResource class. |
Modifier and Type | Method and Description |
---|---|
static LinkedResource |
createLinkedResourceFromString(String content)
Creates the linked resource from string.
|
static LinkedResource |
createLinkedResourceFromString(String content,
Charset contentEncoding,
String mediaType) |
static LinkedResource |
createLinkedResourceFromString(String content,
ContentType contentType)
Creates the linked resource from string.
|
com.aspose.email.ms.System.Uri |
getContentLink()
Gets or sets a URI that the resource must match.
|
void |
setContentLink(com.aspose.email.ms.System.Uri value) |
dispose, getContentId, getContentStream, getContentType, getTransferEncoding, save, save, saveRawContent, setContentId, setContentStream, setContentType, setTransferEncoding
public LinkedResource(String fileName)
Initializes a new instance of the LinkedResource
class.
fileName
- The file name that holds the content for this resource.public LinkedResource(String fileName, String mediaType)
Initializes a new instance of the LinkedResource
class.
fileName
- The file name that holds the content for this resource.mediaType
- Internet media type.public LinkedResource(String fileName, ContentType contentType)
Initializes a new instance of the LinkedResource
class.
fileName
- The file name that holds the content for this resource.contentType
- The type of content.public LinkedResource(InputStream contentStream)
public LinkedResource(InputStream contentStream, String mediaType)
public LinkedResource(InputStream contentStream, ContentType contentType)
public com.aspose.email.ms.System.Uri getContentLink()
Gets or sets a URI that the resource must match.
public void setContentLink(com.aspose.email.ms.System.Uri value)
public static LinkedResource createLinkedResourceFromString(String content)
Creates the linked resource from string.
content
- A string that contains the resource to be included in the email attachment.public static LinkedResource createLinkedResourceFromString(String content, Charset contentEncoding, String mediaType)
public static LinkedResource createLinkedResourceFromString(String content, ContentType contentType)
Creates the linked resource from string.
content
- A string that contains the resource to be included in the email attachment.contentType
- The type of the content.Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.