File Content Extraction 26.3
Filter SDK Java Programming Guide

# FilterFileByChunk

The FilterFileByChunk program filters an input file to an output file 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 file is processed.

## Run FilterFileByChunk on Windows

To run `FilterFileByChunk` on Windows

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

   `INSTALL_DIR` | The absolute path of the File Content Extraction 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:

       filterfilebychunk 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 FilterFileByChunk on UNIX

To run `FilterFileByChunk` on UNIX

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

   `INSTALL_DIR` | The absolute path of the File Content Extraction 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:

       /FilterFileByChunk.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 1997-2026 Open Text
Version 26.3 | Last updated July 2026

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 MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.3

Topic Title: FilterFileByChunk