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

Interface AttachmentsCollection

com.moyosoft.exchange.attachment.AttachmentsCollection

Implemented Interfaces:

public interface AttachmentsCollection implements ExchangeCollection

A collection of attachments attached to an Exchange item. An attachment can be a file (ExchangeFileAttachment) or an Exchange item (ExchangeItemAttachment).

The collection allows to get, iterate over and add new attachments.

This class implements the Iterable interface allowing it to be a target of the foreach statement.

Methods

add (byte data, AttachmentInfo info)
Adds a new file attachment with the specified data and parameters to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (byte data, String name)
Adds a new file attachment with the specified data and parameters to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (java.io.InputStream stream, AttachmentInfo info)
Reads the content of the specified InputStream and adds the read data as a new file attachment to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (java.io.InputStream stream, String name)
Reads the content of the specified InputStream and adds the read data as a new file attachment to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (java.io.File file, AttachmentInfo info)
Reads the content of the specified file and adds the file's data as a new file attachment to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (java.io.File file, String name)
Reads the content of the specified file and adds the file's data as a new file attachment to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (java.io.File file)
Reads the content of the specified file and adds the file's data as a new file attachment to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (ExchangeItem item, AttachmentInfo info)
Adds a new attachment referencing the specified item to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (ExchangeItem item, String name)
Adds a new attachment referencing the specified item to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
add (ExchangeItem item)
Adds a new attachment referencing the specified item to this collection. The resulting created attachment is automatically attached to the parent item of this collection.
iterator ()
Returns an iterator over the attachments contained in this collection. The iterator contains ExchangeAttachment objects. This method never returns null; an empty iterator is returned if this collection is empty.

Community comments



Powered by JavaDocPlus