|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hmef.extractor.HMEFContentsExtractor
public final class HMEFContentsExtractor
A utility for extracting out the message body, and all attachments from a HMEF/TNEF/winmail.dat file
Constructor Summary | |
---|---|
HMEFContentsExtractor(java.io.File filename)
|
|
HMEFContentsExtractor(HMEFMessage message)
|
Method Summary | |
---|---|
void |
extractAttachments(java.io.File dir)
Extracts all the message attachments to the supplied directory |
void |
extractMessageBody(java.io.File dest)
Extracts the RTF message body to the supplied file |
void |
extractMessageBody(java.io.OutputStream out)
Extracts the RTF message body to the supplied stream. |
protected MAPIAttribute |
getBodyAttribute()
|
static void |
main(java.lang.String[] args)
Usage: HMEFContentsExtractor <filename> <output dir> |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HMEFContentsExtractor(java.io.File filename) throws java.io.IOException
java.io.IOException
public HMEFContentsExtractor(HMEFMessage message)
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void extractMessageBody(java.io.File dest) throws java.io.IOException
java.io.IOException
protected MAPIAttribute getBodyAttribute()
public void extractMessageBody(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void extractAttachments(java.io.File dir) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |