com.aspose.network
Class AttachmentBase

java.lang.Object
  extended by com.aspose.network.AttachmentBase
All Implemented Interfaces:
com.aspose.ms.System.IDisposable
Direct Known Subclasses:
AlternateView, Attachment, LinkedResource

public abstract class AttachmentBase
extends Object
implements com.aspose.ms.System.IDisposable

Base class for mail attachment.


Method Summary
 void dispose()
           Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 String getContentId()
           Gets or sets the content id.
 com.aspose.ms.System.IO.Stream getContentStream()
           Gets or sets the content stream.
 ContentType getContentType()
           Gets or sets the type of the content.
 int getTransferEncoding()
           Gets or sets the transfer encoding.
 void save(OutputStream stream)
           Saves the specified stream.
 void save(String fileName)
           Saves the specified file name.
 void saveRawContent(OutputStream stream)
          Deprecated. 
 void setContentId(String value)
           
 void setContentStream(com.aspose.ms.System.IO.Stream value)
           
 void setContentType(ContentType value)
           
 void setTransferEncoding(int value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentStream

public com.aspose.ms.System.IO.Stream getContentStream()

Gets or sets the content stream.

Value: The content stream.


setContentStream

public void setContentStream(com.aspose.ms.System.IO.Stream 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)

saveRawContent

@Deprecated
public void saveRawContent(OutputStream stream)
Deprecated. 

Saves the content of the raw.

Parameters:
stream - The stream.

save

public void save(OutputStream stream)

Saves the specified stream.

Parameters:
stream - The stream.

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.ms.System.IDisposable


Copyright (c) 2002-2011 Aspose Pty Ltd. All Rights Reserved.