com.moyosoft.connector.ms.outlook.attachment
Class OutlookAttachment

java.lang.Object
  |
  +--com.moyosoft.connector.ms.outlook.attachment.OutlookAttachment

public class OutlookAttachment
extends java.lang.Object

Represents an attachment of an Outlook item.

To create a new attachment to an e-mail, use the method AttachmentsCollection.add(File). For example:
OutlookMail mail = ...;
mail.getAttachments().add(new File("test.txt"));


Constructor Summary
OutlookAttachment(com.moyosoft.connector.com.Dispatch dispatch)
           
 
Method Summary
 void delete()
           
 void dispose()
           
 java.lang.String getContentId()
          Returns the content identification header of a MIME message attachment.
 com.moyosoft.connector.com.Dispatch getDispatch()
           
 java.lang.String getDisplayName()
           
 java.lang.String getFileName()
           
 int getIndex()
           
 java.lang.String getPathName()
           
 int getPosition()
           
 PropertyAccessor getPropertyAccessor()
          Returns the PropertyAccessor object for this item.
 AttachmentType getType()
           
 void saveAsFile(java.io.File file)
           
 void setDisplayName(java.lang.String value)
           
 void setHidden(boolean hidden)
           
 void setPosition(int value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutlookAttachment

public OutlookAttachment(com.moyosoft.connector.com.Dispatch dispatch)
Method Detail

getDispatch

public com.moyosoft.connector.com.Dispatch getDispatch()

getDisplayName

public java.lang.String getDisplayName()

setDisplayName

public void setDisplayName(java.lang.String value)

getFileName

public java.lang.String getFileName()

getIndex

public int getIndex()

getPathName

public java.lang.String getPathName()

getPosition

public int getPosition()

setPosition

public void setPosition(int value)

getType

public AttachmentType getType()

delete

public void delete()

saveAsFile

public void saveAsFile(java.io.File file)

dispose

public void dispose()

getContentId

public java.lang.String getContentId()
Returns the content identification header of a MIME message attachment. Embedded HTML images use this value to refer the attachment in the "img" tag.


setHidden

public void setHidden(boolean hidden)

getPropertyAccessor

public PropertyAccessor getPropertyAccessor()
Returns the PropertyAccessor object for this item. The PropertyAccessor handles direct access to this item's properties. Only Outlook 2007 or later supports the PropertyAccessor. With older Outlook versions, this method returns null. This method is only available in the Professional edition of Java Outlook Connector.