public class TNEF
extends java.lang.Object
TNEF class provides high-level utility methods to
access TNEF streams and extract their contents.
Note: This class is experimental and is intended to show possible uses
of the Java TNEF package.| Constructor and Description |
|---|
TNEF() |
| Modifier and Type | Method and Description |
|---|---|
static int |
extractContent(Message message,
java.lang.String outputdir)
Extracts the content from the given TNEF Message, saving attachments
to the given output directory.
|
static int |
extractContent(TNEFInputStream in,
java.lang.String outputdir)
Extracts the content from the given TNEFInputStream, saving attachments
to the given output directory.
|
static void |
main(java.lang.String[] args)
Main entry point for command-line utility.
|
public static int extractContent(TNEFInputStream in, java.lang.String outputdir) throws java.io.IOException
in - the TNEFInputStream containing the contentoutputdir - the directory in which attachments should be savedjava.io.IOException - if an I/O error occurspublic static int extractContent(Message message, java.lang.String outputdir) throws java.io.IOException
message - the Message containing the contentoutputdir - the directory in which attachments should be savedjava.io.IOException - if an I/O error occurspublic static void main(java.lang.String[] args)
args - the command-line arguments