Package org.apache.poi.hsmf.extractor
Class OutlookTextExtactor
- java.lang.Object
-
- org.apache.poi.extractor.POITextExtractor
-
- org.apache.poi.extractor.POIOLE2TextExtractor
-
- org.apache.poi.hsmf.extractor.OutlookTextExtactor
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class OutlookTextExtactor extends POIOLE2TextExtractor
A text extractor for HSMF (Outlook) .msg files. Outputs in a format somewhat like a plain text email.
-
-
Constructor Summary
Constructors Constructor Description OutlookTextExtactor(java.io.InputStream inp)
OutlookTextExtactor(MAPIMessage msg)
OutlookTextExtactor(DirectoryNode poifsDir)
OutlookTextExtactor(POIFSFileSystem fs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPIMessage
getMAPIMessage()
Returns the underlying MAPI messagejava.lang.String
getText()
Outputs something a little like a RFC822 emailstatic void
main(java.lang.String[] args)
-
Methods inherited from class org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getDocument, getMetadataTextExtractor, getRoot, getSummaryInformation
-
Methods inherited from class org.apache.poi.extractor.POITextExtractor
close, setFilesystem
-
-
-
-
Constructor Detail
-
OutlookTextExtactor
public OutlookTextExtactor(MAPIMessage msg)
-
OutlookTextExtactor
public OutlookTextExtactor(DirectoryNode poifsDir) throws java.io.IOException
- Throws:
java.io.IOException
-
OutlookTextExtactor
public OutlookTextExtactor(POIFSFileSystem fs) throws java.io.IOException
- Throws:
java.io.IOException
-
OutlookTextExtactor
public OutlookTextExtactor(java.io.InputStream inp) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getMAPIMessage
public MAPIMessage getMAPIMessage()
Returns the underlying MAPI message
-
getText
public java.lang.String getText()
Outputs something a little like a RFC822 email- Specified by:
getText
in classPOITextExtractor
- Returns:
- All the text from the document
-
-