List of usage examples for javax.mail FetchProfile getItems
public Item[] getItems()
From source file:com.hs.mail.imap.message.response.FetchResponseBuilder.java
private BodyFetchItem getBodyFetchItem(FetchProfile fp) { FetchProfile.Item[] items = fp.getItems(); BodyFetchItem result = null;/*from w ww . j ava 2s . com*/ if (!ArrayUtils.isEmpty(items)) { for (int i = 0; i < items.length; i++) { if (items[i] instanceof BodyFetchItem) { result = (BodyFetchItem) items[i]; break; } } } return result; }