com.aspose.email

com.aspose.email

Class AttachmentBase

All Implemented Interfaces:
com.aspose.email.ms.System.IDisposable
Direct Known Subclasses:
AlternateView, Attachment, LinkedResource
public abstract class AttachmentBase
extends Object
implements com.aspose.email.ms.System.IDisposable

Base class for mail attachment.

Method Summary
void
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
getContentId()
Gets or sets the content id.
getContentType()
Gets or sets the type of the content.
int
getTransferEncoding()
Gets or sets the transfer encoding.
void
save(OutputStream stream)
void
save(String fileName)
Saves the specified file name.
void
saveRawContent(OutputStream stream)
Deprecated. 
void
void
void
void
 
Methods inherited from class java.lang.Object
 

    • Method Detail

      • getContentStream

        public InputStream getContentStream()
      • setContentStream

        public void setContentStream(InputStream value)
      • getContentId

        public String getContentId()

        Gets or sets the content id.

        Value: The content id.

      • setContentId

        public void setContentId(String value)
      • getContentType

        public ContentType getContentType()

        Gets or sets the type of the content.

        Value: The type of the content.

      • setContentType

        public void setContentType(ContentType value)
      • getTransferEncoding

        public int getTransferEncoding()

        Gets or sets the transfer encoding.

        Value: The transfer encoding.

      • setTransferEncoding

        public void setTransferEncoding(int value)
      • save

        public void save(String fileName)

        Saves the specified file name.

        Parameters:
        fileName - Name of the file.
      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface com.aspose.email.ms.System.IDisposable