[ 2884538 ] Introduce EMail.getAttachments

https://sourceforge.net/tracker/?func=detail&aid=2884538&group_id=176962&atid=879335
This commit is contained in:
teo_sarca 2009-10-23 08:10:28 +00:00
parent 8b77820fc0
commit 9a3e738941
1 changed files with 10 additions and 0 deletions

View File

@ -1007,6 +1007,16 @@ public final class EMail implements Serializable
return true;
} // isValid
/**
* @return attachments array or empty array. This method will never return null.
*/
public Object[] getAttachments()
{
if (m_attachments == null)
return new Object[]{};
return m_attachments.toArray();
}
/**
* String Representation
* @return info