本文整理汇总了Java中com.pff.PSTMessage.getSentRepresentingName方法的典型用法代码示例。如果您正苦于以下问题:Java PSTMessage.getSentRepresentingName方法的具体用法?Java PSTMessage.getSentRepresentingName怎么用?Java PSTMessage.getSentRepresentingName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.pff.PSTMessage
的用法示例。
在下文中一共展示了PSTMessage.getSentRepresentingName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValueAt
import com.pff.PSTMessage; //导入方法依赖的package包/类
private Object getValueAt(int col, PSTMessage next) {
try {
switch (col) {
case 0:
return next.getDescriptorNode().descriptorIdentifier+"";
case 1:
return next.getSubject();
case 2:
return next.getSentRepresentingName() + " <"+ next.getSentRepresentingEmailAddress() +">";
case 3:
return next.getReceivedByName() + " <"+next.getReceivedByAddress()+">" + next.getDisplayTo();
case 4:
return next.getClientSubmitTime();
case 5:
return (next.hasAttachments() ? "Yes" : "No");
case 10:
return next ;
}
} catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
return "";
}
示例2: updateGuiWithAttachmentsName
import com.pff.PSTMessage; //导入方法依赖的package包/类
private void updateGuiWithAttachmentsName(final PSTMessage email,
final String folderName, final List<Tuple<String, PSTAttachment>> attachmentsName) {
String subject = "";
String date = "";
String sentRepresentingName = "";
String displayTo = "";
boolean hasAttachment = false;
try {
subject = email.getSubject();
date = Utilities.getEmptyStringWhenNullDate(email.getClientSubmitTime());
hasAttachment = email.hasAttachments();
sentRepresentingName = email.getSentRepresentingName();
displayTo = Utilities.getEmptyStringWhenNullString(email.getDisplayTo());
}
catch(Exception e ) {
System.out.println("Exception in outlook gui update!!!");
}
List<String> names = new ArrayList<String>();
for(Tuple<String, PSTAttachment> pair: attachmentsName) {
names.add(pair.getA());
}
String agent = "Outlook: " + getFile().getAbsolutePath();
EmailCrawlingProgressPanel.EmailCrawlingData data = new EmailCrawlingProgressPanel.EmailCrawlingData(
agent, folderName, subject, date, String.valueOf(hasAttachment),
sentRepresentingName, displayTo, names
);
}