|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.email.AttachmentBase
com.aspose.email.AlternateView
public class AlternateView
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 |
---|
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)
Method Detail |
---|
public LinkedResourceCollection getLinkedResources()
Gets the set of embedded resources referred to by this alternate view.
Value: The linked resources.
public com.aspose.ms.System.Uri getBaseUri()
Gets or sets the base URI.
Value: The base URI.
public void setBaseUri(com.aspose.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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |