public class OutlookTextExtractor extends Object implements POIOLE2TextExtractor
| Constructor and Description |
|---|
OutlookTextExtractor(DirectoryNode poifsDir) |
OutlookTextExtractor(InputStream inp) |
OutlookTextExtractor(MAPIMessage msg) |
OutlookTextExtractor(POIFSFileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
MAPIMessage |
getDocument() |
MAPIMessage |
getFilesystem() |
MAPIMessage |
getMAPIMessage()
Returns the underlying MAPI message
|
String |
getText()
Outputs something a little like a RFC822 email
|
protected void |
handleEmails(StringBuilder s,
String type,
String displayText,
Iterator<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(String[] args) |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformationclosepublic OutlookTextExtractor(MAPIMessage msg)
public OutlookTextExtractor(DirectoryNode poifsDir) throws IOException
IOExceptionpublic OutlookTextExtractor(POIFSFileSystem fs) throws IOException
IOExceptionpublic OutlookTextExtractor(InputStream inp) throws IOException
IOExceptionpublic MAPIMessage getMAPIMessage()
public String getText()
getText in interface POITextExtractorprotected void handleEmails(StringBuilder s, String type, String displayText, Iterator<String> emails)
"Nick <nick@example.com>; Jim <jim@example.com>"public MAPIMessage getDocument()
getDocument in interface POIOLE2TextExtractorgetDocument in interface POITextExtractorpublic void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem in interface POITextExtractorpublic boolean isCloseFilesystem()
isCloseFilesystem in interface POITextExtractorpublic MAPIMessage getFilesystem()
getFilesystem in interface POITextExtractor