com.moyosoft.exchange.attachment
Interface AttachmentsIterator

All Superinterfaces:
java.util.Iterator<ExchangeAttachment>

public interface AttachmentsIterator
extends java.util.Iterator<ExchangeAttachment>

Iterator over attachments of an Exchange item.


Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 ExchangeAttachment next()
          Deprecated. use the method nextAttachment() instead.
 ExchangeAttachment nextAttachment()
           
 void remove()
          Deprecated. use the method ExchangeAttachment.delete() instead.
 

Method Detail

hasNext

boolean hasNext()
Returns true if the iteration has more elements.

Specified by:
hasNext in interface java.util.Iterator<ExchangeAttachment>
Returns:
true if the iterator has more elements.

next

ExchangeAttachment next()
Deprecated. use the method nextAttachment() instead.

Specified by:
next in interface java.util.Iterator<ExchangeAttachment>
Returns:
the next attachment in the iteration.
Throws:
java.util.NoSuchElementException - encapsulating a ExchangeServiceException if any errors occur during the communication with Exchange.
See Also:
nextAttachment()

remove

void remove()
Deprecated. use the method ExchangeAttachment.delete() instead.

This method always throws an UnsupportedOperationException as the remove operation is not supported by this iterator. To delete an attachment, use the method ExchangeAttachment.delete() instead.

Specified by:
remove in interface java.util.Iterator<ExchangeAttachment>
Throws:
java.lang.UnsupportedOperationException - always
See Also:
ExchangeAttachment.delete()

nextAttachment

ExchangeAttachment nextAttachment()
                                  throws ExchangeServiceException
Returns:
the next attachment in the iteration.
Throws:
ExchangeServiceException - if any errors occur during the communication with Exchange.