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


Java PSTFile类代码示例

本文整理汇总了Java中com.pff.PSTFile的典型用法代码示例。如果您正苦于以下问题:Java PSTFile类的具体用法?Java PSTFile怎么用?Java PSTFile使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PSTFile类属于com.pff包,在下文中一共展示了PSTFile类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: EmailVisualizationThread

import com.pff.PSTFile; //导入依赖的package包/类
public EmailVisualizationThread (MessageFrequencyDialog frame, InfiniteProgressPanel i, String folderName, PSTFile testPST,  String path,
        String from, String to, FolderType type, String fromUser, String toUser) {
    this.dialog = frame;
    this.i = i;
    this.status = true;
    this.folderName = folderName;
    this.pst = testPST;
    this.pstPath = path;
    this.from = from;
    this.to = to;
    this.type = type;
    this.fromUser = fromUser;
    this.toUser = toUser;
    
    logger.info("EmailVisualizationThread Constructor");
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:17,代码来源:EmailVisualizationThread.java

示例2: getInstance

import com.pff.PSTFile; //导入依赖的package包/类
public static ArrayList<MessageHeader> getInstance(PSTFile pst, String p, InfiniteProgressPanel pnl) {    
    if ( messageHeaderList == null || ! path.equals(p)) {
        messageHeaderList = new ArrayList<MessageHeader> ();
        pstFile = pst ;
        path = p ;
        panel = pnl ;
        counter = 0;
        
        logger.info("EmailReader Constructor");

        caching();
    }

    if ( status == false) {
        logger.log(Level.INFO, "Cannot caching email");
        return null;
    }

    logger.log(Level.INFO, "Messaege Header List size is: " + messageHeaderList.size());
    return messageHeaderList ;
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:22,代码来源:EmailReader.java

示例3: doIndexing

import com.pff.PSTFile; //导入依赖的package包/类
@Override
public boolean doIndexing() {
   boolean result = false;
   
    try {
        PSTFile pstFile = new PSTFile(this.getFile().getAbsolutePath());
        
        this.outlookId = this.getId();
        
        NonDocumentIndexer.newInstance(this.getIndexerManager(), this.getFile(), this.getMimeType(),
            new NoneImageExtractor(), this.getParentId()).doIndexing();
        
        this.processOutlookFolder(pstFile.getRootFolder());
        result = true;
        
    } 
    catch (Exception ex) {
        ex.printStackTrace();
    }
    
    return result;
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:23,代码来源:OutlookIndexer.java

示例4: MessageFrequencyDialog

import com.pff.PSTFile; //导入依赖的package包/类
/** Creates new form MessageFrequencyDialog */
public MessageFrequencyDialog(java.awt.Frame parent, boolean modal, ArrayList<Message> msgs,
        String folderName, PSTFile testPST,  String path,
        String from, String to, String fromUser) {

    super(parent, modal);

    this.folderName = folderName;
    this.pst = testPST;
    this.pstPath = path;
    this.from = from;
    this.to = to;
    this.userName = fromUser;
   
    this.setUndecorated(true);
    setPreferredSize(Toolkit.getDefaultToolkit().getScreenSize()); // maximize JDialog

    initComponents();

    for (Message msg: msgs ) {
        messageFreqNameComboBox.addItem(msg.getSenderName());
    }
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:24,代码来源:MessageFrequencyDialog.java

示例5: getPSTFolder

import com.pff.PSTFile; //导入依赖的package包/类
/**
 * *
 * Get Folder structure for provided .pst file path
 *
 * @return @throws PSTException
 * @throws IOException
 * @throws Exception
 */
public PSTFolder getPSTFolder() throws PSTException, IOException, Exception {
    PSTFile pstFile = new PSTFile(this.emailFilePath);
    if (pstFile == null) {
        throw new Exception("pstFile object is null.");
    }

    return pstFile.getRootFolder();
}
 
开发者ID:ranjeet-floyd,项目名称:pst-email-save-attachment,代码行数:17,代码来源:PSTFileHelper.java

示例6: showVisualization

import com.pff.PSTFile; //导入依赖的package包/类
private void showVisualization (String from, String to, PSTFile pst, String path, String title, String folderName,EmailVisualizationThread.FolderType type) {
    InfiniteProgressPanel i = new InfiniteProgressPanel(title);
    parentFrame.setGlassPane(i);
    i.start();

    EmailVisualizationThread thread = new EmailVisualizationThread(null, i, folderName , pst, path, from, to, type);
    thread.execute();
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:9,代码来源:EmailPanel.java

示例7: setOutlookHandling

import com.pff.PSTFile; //导入依赖的package包/类
public void setOutlookHandling (PSTFile pstFile, String path) {
        // attempt to open the pst file and initlizing tree
try { 
           top = new DefaultMutableTreeNode(pstFile.getMessageStore());
           buildTree(top, pstFile.getRootFolder());
           
           emailTableModel = new EmailTableModel(pstFile, path);

} catch (Exception err) {
           err.printStackTrace();
           return ;
}
   }
 
开发者ID:CoEIA,项目名称:DEM,代码行数:14,代码来源:EmailPanel.java

示例8: showVisualization

import com.pff.PSTFile; //导入依赖的package包/类
private void showVisualization (String from, String to, PSTFile pst,
        String path, String title, String folderName,EmailVisualizationThread.FolderType type) {
    
    InfiniteProgressPanel i = new InfiniteProgressPanel(title);
    caseFrame.setGlassPane(i);
    i.start();

    EmailVisualizationThread thread = new EmailVisualizationThread(null, i, folderName , pst, path, from, to, type);
    thread.execute();
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:11,代码来源:EmailBrowsingPanel.java

示例9: collect

import com.pff.PSTFile; //导入依赖的package包/类
@Override
public void collect() throws IOException, ConfigException {
    //
    // Logic:  Traverse PST file.
    //     it contains mail, contacts, tasks, notes, other stuff?
    //
    // Replicate folder structure discovered.
    // Mail and date-oriented items should be filed by date. For now, YYYY-MM-DD is fine.
    //
    // For mail messages, review DefaultMailCralwer:
    //  - for each message
    //    save message to disk;  create parent folder to contain message contents
    //    run text conversion individually on attachments.
    //
    //  - structure:
    //    ./Mail/
    //         2014-04-09/messageABC.eml
    //         2014-04-09/messageABC/attachment1.doc

    log.info("Traversing PST Folders for FILE={}", pst);
    try {
        PSTFile pstStore = new PSTFile(pst);
        processFolder(pstStore.getRootFolder());
    } catch (PSTException err) {
        throw new ConfigException("Failure with PST traversal", err);
    }
}
 
开发者ID:OpenSextant,项目名称:Xponents,代码行数:28,代码来源:OutlookPSTCrawler.java

示例10: EmailTableModel

import com.pff.PSTFile; //导入依赖的package包/类
public EmailTableModel (PSTFile pst, String path) {
    this.pstFile = pst ;
    this.path = path ;
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:5,代码来源:EmailTableModel.java

示例11: EmailHandler

import com.pff.PSTFile; //导入依赖的package包/类
public EmailHandler (PSTFile pst, String path) {
    pstFile = pst ;
    this.path = path ;
    
    logger.info("EmailHandler Constructor");
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:7,代码来源:EmailHandler.java

示例12: EmailReaderThread

import com.pff.PSTFile; //导入依赖的package包/类
public EmailReaderThread (String path, PSTFile pstFile, InfiniteProgressPanel i) {
    this.path = path ;
    this.pstFile = pstFile ;
    this.panel = i ;
}
 
开发者ID:CoEIA,项目名称:DEM,代码行数:6,代码来源:EmailReaderThread.java


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