ExtractExport

This program demonstrates the File Extraction interface and basic functionality of the Export interface. The HtmlTest sample program demonstrates more advanced functionality of the Export interface. See HtmlTest.

The program is available in J# (ExtractExport.exe) for .NET and Java (ExtractExport.java).

The ExtractExport program demonstrates the following functionality:

To run ExtractExport

  1. For the Java version of the program, add the location of the javaapi\KeyView.jar file, the javaapi\sample directory, and the Export bin directory to the CLASSPATH environment variable. (Not required for .NET version of the program.)

  2. For the Java version of the program, type the following:

    java -Djava.library.path=bin_directory ExtractExport [options] bin_directoryinifileinput_fileoutput_file

    For the .NET version of the program (ExtractExport.exe), type:

    ExtractExport [options] bin_directoryinifileinput_fileoutput_file

    where:

Options for the ExtractExport Sample Program

Option

Description

-extonly This option extracts the subfiles from a source file, but does not convert the files after extraction.
-extdir directory This option sets the suggested directory to which the subfiles are extracted.
-ext-fbody This option extracts the formatted version of the message body (HTML or RTF) from mail files when possible.
-xml

This option converts the files to XML. The default is HTML. To use this option, XML Export must be installed.

The .NET version of the sample program does not support this option.

-source-cs charset

This option sets the character set of the source file.

charset is a character set defined as a constant in the Export class. See Coded Character Sets.

-target-cs charset

This option sets the character set of the output file.

charset is a character set defined as a constant in the Export class. See Coded Character Sets.

-little-end This option sets the byte order for Unicode text to little endian.
-is This option sets the input as a stream. The default is file.
-os This option sets the output as a stream. The default is file.
-open-user username This option specifies the user name used to open a protected PST or NSF file.
-open-pass password This option specifies the password used to open a protected PST or NSF file.
-open-idfile idfile This option specifies the user ID file used to open a protected PST or NSF file.
-open-createroot This option creates a root directory on which a hierarchy can be based. See Create a Root Node.
-ext-nodir This option specifies that the subfile directory structure is not created.
-ext-noheader This option excludes mail header information from extracted message body text file. See Exclude Metadata from the Extracted Text File.
-meta outfile This option extracts default mail metadata and writes it to a file. See Extract Mail Metadata.
-oop This option converts the files in a separate process. See Convert Files Out of Process.
-ip This option runs file extraction in the same process as the calling application (in process). See Convert Files Out of Process.

_HP_HTML5_bannerTitle.htm