Package org.apache.poi.hsmf.extractor
Class OutlookTextExtractor
java.lang.Object
org.apache.poi.hsmf.extractor.OutlookTextExtractor
- All Implemented Interfaces:
Closeable,AutoCloseable,POIOLE2TextExtractor,POITextExtractor
A text extractor for HSMF (Outlook) .msg files.
Outputs in a format somewhat like a plain text email.
- Since:
- 4.1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the underlying POIDocumentReturns the underlying MAPI messagegetText()Outputs something a little like a RFC822 emailbooleanstatic voidvoidsetCloseFilesystem(boolean doCloseFilesystem) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformationMethods inherited from interface org.apache.poi.extractor.POITextExtractor
close
-
Constructor Details
-
OutlookTextExtractor
-
OutlookTextExtractor
- Throws:
IOException
-
OutlookTextExtractor
- Throws:
IOException
-
OutlookTextExtractor
- Throws:
IOException
-
-
Method Details
-
main
- Throws:
Exception
-
getMAPIMessage
Returns the underlying MAPI message -
getText
Outputs something a little like a RFC822 email- Specified by:
getTextin interfacePOITextExtractor- Returns:
- All the text from the document
-
getDocument
Description copied from interface:POIOLE2TextExtractorReturn the underlying POIDocument- Specified by:
getDocumentin interfacePOIOLE2TextExtractor- Specified by:
getDocumentin interfacePOITextExtractor- Returns:
- the underlying POIDocument
-
setCloseFilesystem
public void setCloseFilesystem(boolean doCloseFilesystem) - Specified by:
setCloseFilesystemin interfacePOITextExtractor- Parameters:
doCloseFilesystem-true(default), if underlying resources/filesystem should be closed onPOITextExtractor.close()
-
isCloseFilesystem
public boolean isCloseFilesystem()- Specified by:
isCloseFilesystemin interfacePOITextExtractor- Returns:
true, if resources/filesystem should be closed onPOITextExtractor.close()
-
getFilesystem
- Specified by:
getFilesystemin interfacePOITextExtractor- Returns:
- The underlying resources/filesystem
-