com.aspose.email
Class Attachment
java.lang.Object
com.aspose.email.AttachmentBase
com.aspose.email.Attachment
- All Implemented Interfaces:
- IAttachment, IPreferredTextEncodingProvider, com.aspose.ms.System.IDisposable
public class Attachment
- extends AttachmentBase
- implements IPreferredTextEncodingProvider, IAttachment
Methods inherited from class com.aspose.email.AttachmentBase |
dispose, getContentId, getContentStream, getContentType, getTransferEncoding, save, save, saveRawContent, setContentId, setContentStream, setContentType, setTransferEncoding |
Attachment
public Attachment(String fileName)
Attachment
public Attachment(String fileName,
String mediaType)
Attachment
public Attachment(String fileName,
ContentType contentType)
Attachment
public Attachment(InputStream contentStream,
String name)
Attachment
public Attachment(InputStream contentStream,
String name,
String mediaType)
Attachment
public Attachment(InputStream contentStream,
ContentType contentType)
getName
public String getName()
Gets or sets an attachment name
- Specified by:
getName
in interface IAttachment
setName
public void setName(String value)
- Specified by:
setName
in interface IAttachment
getNameEncoding
public Charset getNameEncoding()
setNameEncoding
public void setNameEncoding(Charset value)
getContentDisposition
public ContentDisposition getContentDisposition()
Gets Content-Disposition header
getPreferredTextEncodingInternal
public com.aspose.ms.System.Text.Encoding getPreferredTextEncodingInternal()
Gets or sets a preferred text encoding
getPreferredTextEncoding
public Charset getPreferredTextEncoding()
- Specified by:
getPreferredTextEncoding
in interface IPreferredTextEncodingProvider
setPreferredTextEncodingInternal
public void setPreferredTextEncodingInternal(com.aspose.ms.System.Text.Encoding value)
setPreferredTextEncoding
public void setPreferredTextEncoding(Charset value)
- Specified by:
setPreferredTextEncoding
in interface IPreferredTextEncodingProvider
createAttachmentFromString
public static Attachment createAttachmentFromString(String content,
String name)
createAttachmentFromString
public static Attachment createAttachmentFromString(String content,
String name,
Charset contentEncoding,
String mediaType)
createAttachmentFromString
public static Attachment createAttachmentFromString(String content,
ContentType contentType)
Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.