KeyView 23.2

# HtmlConvStreamToStream

This program converts an input stream to an output stream using Java API calls in HTML Export, and a template file. See Explore Conversion Options with the Sample Programs for more information on template files.

NOTE: This sample program demonstrates how to export from a `java.io.InputStream` object. However, OpenText recommends that you implement a `com.verity.api.SeekableInputStream` and pass this into KeyView instead. OpenText recommends this option because it allows KeyView to seek in the file, only reading the parts it needs to read. For more information, see Input/Output Operations.

## Run HtmlConvStreamToStream on Windows

To run HtmlConvStreamToStream on Windows

1. In the file `HtmlConvStreamToStream.bat`, set the following variables.

   `INSTALL_DIR` | The absolute path of the KeyView Export SDK installation directory.
   `PLATFORM` | The platform name.

2. In `HtmlSampleConfig.txt`, specify the following values, one on each line.

   Line | Value
   --- | ---
   1 | The path to the template file to use in the conversion. You can use the template files in the directory `install\htmlexport\programs\ini`, where `install` is the Export SDK installation directory.
   2 | The path to the Export SDK `bin` directory.

3. Run the batch file in the `install/javaapi/sample` directory. Type the following:

       HtmlConvStreamToStream inputfile

   where `inputfile` is the path of the source file.

   The generated HTML is output to the current console (standard out).

## Run HtmlConvStreamToStream on UNIX

To run HtmlConvStreamToStream on UNIX

1. In the file `HtmlConvStreamToStream.csh`, set the following variables.

   `INSTALL_DIR` | The absolute path of the KeyView Export SDK installation directory.
   `PLATFORM` | The platform name.

2. In `HtmlSampleConfig.txt`, specify the following values, one on each line.

   Line | Value
   --- | ---
   1 | The path to the template file to use in the conversion. You can use the template files in the directory `install\htmlexport\programs\ini`, where `install` is the Export SDK installation directory.
   2 | The path to the Export SDK `bin` directory.

3. Run the C shell file in the `install/javaapi/sample` directory. Type the following:

       ./HtmlConvStreamToStream.csh inputfile

   where `inputfile` is the path of the source file.

   The generated HTML is output to the current console (standard out).

Copyright 1997-2023 Open Text
Version 23.2 | Last updated March 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.2

Topic Title: HtmlConvStreamToStream