當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。