XmlConvStreamToStream
This program converts an input stream to an output stream using Java API calls in XML Export, and a template file. See Explore Conversion Options with the Sample Programs for more information on templates.
NOTE: This sample program demonstrates how to export from a java.io.InputStream
object. However, Micro Focus recommends that you implement a com.verity.api.SeekableInputStream
and pass this into KeyView instead. Micro Focus 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 XmlConvStreamToStream on Windows
To run XmlConvStreamToStream on Windows
-
In the file
XmlConvStreamToStream.bat
, set the following variables.INSTALL_DIR
The absolute path of the KeyView Export SDK installation directory. PLATFORM
The platform name. -
In
XmlSampleConfig.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\xmlexport\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:XmlConvStreamToStream inputfile
where
inputfile
is the path of the source file.The generated XML is output to the current console (standard out).
Run XmlConvStreamToStream on UNIX
To run XmlConvStreamToStream on UNIX
-
In the file
XmlConvStreamToStream.csh
, set the following variables.INSTALL_DIR
The absolute path of the KeyView Export SDK installation directory. PLATFORM
The platform name. -
In
XmlSampleConfig.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\xmlexport\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:./XmlConvStreamToStream.csh inputfile
where
inputfile
is the path of the source file.The generated XML is output to the current console (standard out).