File Content Extraction 25.3
Filter SDK Java Programming Guide

# Report the File Name in Stream Mode

When you run Filter in file mode, the file name is always reported in the log file. To report the file name in stream mode, you must extract it through the API.

To add the input file name to the log

1. Create an instance of `ConfigOption` with the following arguments:

   1. Set the `OptionType` to `CFG_SETOOPSRCFILE`.
   2. Set the `OptionValue` to 0.
   3. Set `OptionData` to the `input_filename`.
2. Call the `setConfigOption` method, and pass in the `ConfigOption` instance.

## Example

    if((filterFlags & Filter.FILTERFLAG_OOPLOGON) == Filter.FILTERFLAG_OOPLOGON)
    {
      ConfigOption config = new ConfigOption(Filter.CFG_SETOOPSRCFILE, 0, inFile);
      objFilter.setConfigOption(config);
    }

Copyright 1997-2025 Open Text
Version 25.3 | Last updated July 2025

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 25.3

Topic Title: Report the File Name in Stream Mode