return header.toArray(EMPTY_ARRAY);
}
// send the entire table base on the iterator
// first, fetch the entry using original iterator
SyndEntry entry = iterator.next();
// second, fetch data from entry
String base = entry.getBase();
String id = entry.getId();
String lang = entry.getLang();
String authors =
entry.getAuthors() != null && !entry.getAuthors().isEmpty() ? entry.getAuthors()
.get(0).getName() : "";
String title = entry.getTitle() != null ? entry.getTitle().getValue() : "";
String content = entry.getContent() != null ? entry.getContent().getValue() : "";
String published =
entry.getPublished() != null ? String.valueOf(entry.getPublished()) : "";
String updated = entry.getUpdated() != null ? String.valueOf(entry.getUpdated()) : "";
String summary = entry.getSummary() != null ? entry.getSummary().getValue() : "";
// to improve the search, convert categories to Map
Map<String, String> categoriesMap = new HashMap<String, String>();
List<SyndCategory> categories = entry.getCategories();
if (categories != null) {
for (SyndCategory bean : categories) {
categoriesMap.put(bean.getScheme(), bean.getTerm());
}
}