Package org.apache.poi.hmef.extractor
Class HMEFContentsExtractor
java.lang.Object
org.apache.poi.hmef.extractor.HMEFContentsExtractor
A utility for extracting out the message body, and all attachments
from a HMEF/TNEF/winmail.dat file
-
Constructor Summary
ConstructorsConstructorDescriptionHMEFContentsExtractor(File filename) HMEFContentsExtractor(HMEFMessage message) -
Method Summary
Modifier and TypeMethodDescriptionvoidextractAttachments(File dir) Extracts all the message attachments to the supplied directoryvoidextractMessageBody(File dest) Extracts the RTF message body to the supplied filevoidExtracts the RTF message body to the supplied stream.protected MAPIAttributestatic voidUsage: HMEFContentsExtractor <filename> <output dir>
-
Constructor Details
-
HMEFContentsExtractor
- Throws:
IOException
-
HMEFContentsExtractor
-
-
Method Details
-
main
Usage: HMEFContentsExtractor <filename> <output dir>- Throws:
IOException
-
extractMessageBody
Extracts the RTF message body to the supplied file- Throws:
IOException
-
getBodyAttribute
-
extractMessageBody
Extracts the RTF message body to the supplied stream. If there is no RTF message body, nothing will be written to the stream, but no errors or exceptions will be raised.- Throws:
IOException
-
extractAttachments
Extracts all the message attachments to the supplied directory- Throws:
IOException
-