当前位置: 首页>>代码示例>>Java>>正文


Java PSTMessage.getSentRepresentingName方法代码示例

本文整理汇总了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 "";
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:26,代码来源:EmailHandler.java

示例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
    );
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:31,代码来源:OutlookIndexer.java


注:本文中的com.pff.PSTMessage.getSentRepresentingName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。