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.


  ConfigOption config = new ConfigOption(Filter.CFG_SETOOPSRCFILE, 0, inFile);