public class OutlookTextExtractor extends java.lang.Object implements POIOLE2TextExtractor
Constructor and Description |
---|
OutlookTextExtractor(DirectoryNode poifsDir) |
OutlookTextExtractor(java.io.InputStream inp) |
OutlookTextExtractor(MAPIMessage msg) |
OutlookTextExtractor(POIFSFileSystem fs) |
Modifier and Type | Method and Description |
---|---|
MAPIMessage |
getDocument()
Return the underlying POIDocument
|
MAPIMessage |
getFilesystem() |
MAPIMessage |
getMAPIMessage()
Returns the underlying MAPI message
|
java.lang.String |
getText()
Outputs something a little like a RFC822 email
|
protected void |
handleEmails(java.lang.StringBuilder s,
java.lang.String type,
java.lang.String displayText,
java.util.Iterator<java.lang.String> emails)
Takes a Display focused string, eg "Nick; Jim" and an iterator
of emails, and does its best to return something like
"Nick <nick@example.com>; Jim <jim@example.com>" |
boolean |
isCloseFilesystem() |
static void |
main(java.lang.String[] args) |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformation
close
public OutlookTextExtractor(MAPIMessage msg)
public OutlookTextExtractor(DirectoryNode poifsDir) throws java.io.IOException
java.io.IOException
public OutlookTextExtractor(POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public OutlookTextExtractor(java.io.InputStream inp) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public MAPIMessage getMAPIMessage()
public java.lang.String getText()
getText
in interface POITextExtractor
protected void handleEmails(java.lang.StringBuilder s, java.lang.String type, java.lang.String displayText, java.util.Iterator<java.lang.String> emails)
"Nick <nick@example.com>; Jim <jim@example.com>"
public MAPIMessage getDocument()
POIOLE2TextExtractor
getDocument
in interface POIOLE2TextExtractor
getDocument
in interface POITextExtractor
public void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem
in interface POITextExtractor
doCloseFilesystem
- true
(default), if underlying resources/filesystem should be
closed on POITextExtractor.close()
public boolean isCloseFilesystem()
isCloseFilesystem
in interface POITextExtractor
true
, if resources/filesystem should be closed on POITextExtractor.close()
public MAPIMessage getFilesystem()
getFilesystem
in interface POITextExtractor
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.