use of net.freeutils.tnef.MAPIValue in project zm-mailbox by Zimbra.
the class MapiPropertyId method getDateValue.
public Date getDateValue(SchedulingViewOfTnef schedView) throws IOException {
MAPIValue mpValue = getFirstValue(schedView);
if (mpValue == null) {
return null;
}
Object obj = mpValue.getValue();
if (obj == null) {
return null;
}
if (obj instanceof Date) {
return (Date) obj;
}
return null;
}
use of net.freeutils.tnef.MAPIValue in project zm-mailbox by Zimbra.
the class SchedulingViewOfTnef method getCategories.
/**
* @return value of PidNameKeywords property or null if absent
* @throws IOException
*/
public List<String> getCategories() throws IOException {
MAPIValue[] values = MapiPropertyId.PidNameKeywords.getValues(this);
if (values == null) {
return null;
}
ArrayList<String> categories = new ArrayList<String>();
for (MAPIValue val : values) {
categories.add(val.toString());
}
return categories;
}
Aggregations