Moyosoft Products | Services | Download | Contact us    
Java Bridge to Exchange
Products  >  Java Bridge to Exchange  >  API Reference    
API Reference
   
Overview  |  
Classic JavaDoc

Interface ExchangeAttachment

com.moyosoft.exchange.attachment.ExchangeAttachment

Direct Known Subclasses:

public interface ExchangeAttachment

Represents an attachment attached to an Exchange item. An attachment can be a file (ExchangeFileAttachment) or an Exchange item (ExchangeItemAttachment).

Methods

void
delete ()
Deletes this attachment. It will therefore be removed from the attachments of the parent item.
getAttachmentInfo ()
Returns additional information on the attachment.
String
getContentId ()
Returns an application-specific identifier for the contents of an attachment.
String
getContentLocation ()
Returns the URI corresponding to the location of the content of the attachment.
String
getContentType ()
Returns the MIME type of the attachment content.
String
getName ()
Returns the displayed name of the attachment.
String
getParentItemId ()
Returns the ID of the parent item that this attachment is attached to.
void
writeTo (java.io.OutputStream stream)
Writes the content of the attachment to the specified output stream.
void
writeTo (java.io.File file)
Writes the content of the attachment to the specified file. If the specified file doesn't exist, it will be created.

Community comments



Powered by JavaDocPlus