本文整理汇总了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");
}
示例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 ;
}
示例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;
}
示例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());
}
}
示例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();
}
示例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();
}
示例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 ;
}
}
示例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();
}
示例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);
}
}
示例10: EmailTableModel
import com.pff.PSTFile; //导入依赖的package包/类
public EmailTableModel (PSTFile pst, String path) {
this.pstFile = pst ;
this.path = path ;
}
示例11: EmailHandler
import com.pff.PSTFile; //导入依赖的package包/类
public EmailHandler (PSTFile pst, String path) {
pstFile = pst ;
this.path = path ;
logger.info("EmailHandler Constructor");
}
示例12: EmailReaderThread
import com.pff.PSTFile; //导入依赖的package包/类
public EmailReaderThread (String path, PSTFile pstFile, InfiniteProgressPanel i) {
this.path = path ;
this.pstFile = pstFile ;
this.panel = i ;
}