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
-
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. -
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
, whereinstall
is the Export SDK installation directory.2 The path to the Export SDK bin
directory. -
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
-
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. -
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
, whereinstall
is the Export SDK installation directory.2 The path to the Export SDK bin
directory. -
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).