public final class HMEFContentsExtractor extends Object
| Constructor and Description |
|---|
HMEFContentsExtractor(File file) |
HMEFContentsExtractor(HMEFMessage message) |
| Modifier and Type | Method and Description |
|---|---|
void |
extractAttachments(File dir)
Extracts all the message attachments to the supplied directory
|
void |
extractMessageBody(File dest)
Extracts the RTF message body to the supplied file
|
void |
extractMessageBody(OutputStream out)
Extracts the RTF message body to the supplied stream.
|
protected MAPIAttribute |
getBodyAttribute() |
static void |
main(String[] args)
Usage: HMEFContentsExtractor <filename> <output dir>
|
public HMEFContentsExtractor(File file) throws IOException
IOExceptionpublic HMEFContentsExtractor(HMEFMessage message)
public static void main(String[] args) throws IOException
IOExceptionpublic void extractMessageBody(File dest) throws IOException
IOExceptionprotected MAPIAttribute getBodyAttribute()
public void extractMessageBody(OutputStream out) throws IOException
IOExceptionpublic void extractAttachments(File dir) throws IOException
IOException