com.openexchange.messaging
Class MessagingPartArrayContent

java.lang.Object
  extended by com.openexchange.messaging.MessagingPartArrayContent
All Implemented Interfaces:
MessagingContent, MultipartContent

public class MessagingPartArrayContent
extends java.lang.Object
implements MultipartContent

MessagingPartArrayContent

Author:
Francisco Laguna

Constructor Summary
MessagingPartArrayContent(java.util.Collection<? extends MessagingBodyPart> parts)
           
MessagingPartArrayContent(MessagingBodyPart[] parts)
           
 
Method Summary
 MessagingBodyPart get(int index)
          Get the specified part.
 int getCount()
          Gets the number of enclosed parts.
 java.lang.String getSubType()
          Gets this multipart's sub-type; e.g "mixed".
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagingPartArrayContent

public MessagingPartArrayContent(MessagingBodyPart[] parts)

MessagingPartArrayContent

public MessagingPartArrayContent(java.util.Collection<? extends MessagingBodyPart> parts)
Method Detail

get

public MessagingBodyPart get(int index)
Description copied from interface: MultipartContent
Get the specified part. Parts are numbered starting at zero.

Specified by:
get in interface MultipartContent
Parameters:
index - The zero-based index
Returns:
The indexed part

getCount

public int getCount()
Description copied from interface: MultipartContent
Gets the number of enclosed parts.

Specified by:
getCount in interface MultipartContent
Returns:
The number of enclosed parts

getSubType

public java.lang.String getSubType()
Description copied from interface: MultipartContent
Gets this multipart's sub-type; e.g "mixed".

Specified by:
getSubType in interface MultipartContent
Returns:
The sub-type