KeyView 23.2

# FilterStreamByChunk

The FilterStreamByChunk program filters an input stream to an output stream using the Java API method `doFilterChunk()`. The method filters an input source and returns one chunk of output data. The program calls the method repeatedly until the entire output buffer is processed.

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

## Run FilterStreamByChunk on Windows

To run `FilterStreamByChunk` on Windows

1. In the `FilterStreamByChunk.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:

       filterstreambychunk 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 FilterStreamByChunk on UNIX

To run `FilterStreamByChunk` on UNIX

1. In the `FilterStreamByChunk.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:

       ./FilterStreamByChunk.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.

Copyright 2016-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: FilterStreamByChunk