public class TNEF extends 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,
String outputdir)
Extracts the content from the given TNEF Message, saving attachments
to the given output directory.
|
static int |
extractContent(TNEFInputStream in,
String outputdir)
Extracts the content from the given TNEFInputStream, saving attachments
to the given output directory.
|
static void |
main(String[] args)
Main entry point for command-line utility.
|
public static int extractContent(TNEFInputStream in, String outputdir) throws IOException
in
- the TNEFInputStream containing the contentoutputdir
- the directory in which attachments should be savedIOException
- if an I/O error occurspublic static int extractContent(Message message, String outputdir) throws IOException
message
- the Message containing the contentoutputdir
- the directory in which attachments should be savedIOException
- if an I/O error occurspublic static void main(String[] args)
args
- the command-line argumentsThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.