# FilterStreamToFile

The FilterStreamToFile program filters an input stream to an output file using Java API methods in Filter.

NOTE: In KeyView version 12.9 and later, Micro Focus recommends that you implement a `com.verity.api.SeekableInputStream`. See Input/Output Operations.

## Run FilterStreamToFile on Windows

To run `FilterStreamToFile` on Windows

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

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

2. Run the batch file in the directory `install\javaapi\sample`, where `install` is the path name of the Filter installation directory. Type the following:

       filterstreamtofile inputfile outputfile

   where,

   `inputfile` is the path and file name of the source file.

   `outputfile` is the path and file name of the generated file. If a path is not specified, the file is output to the current directory.

## Run FilterStreamToFile on UNIX

To run `FilterStreamToFile` on UNIX

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

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

2. Run the C shell file in the directory `install/javaapi/sample`, where `install` is the path name of the Filter installation directory. Type the following:

       ./FilterStreamToFile.csh inputfile outputfile

   where,

   `inputfile` is the path and file name of the source file.

   `outputfile` is the path and file name of the generated file. If a path is not specified, the file is output to the current directory.

_FT_HTML5_bannerTitle.htm