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
Create an instance of ConfigOption
with the following arguments:
setConfigOption
method, and pass in the ConfigOption
instance. if((filterFlags & Filter.FILTERFLAG_OOPLOGON) == Filter.FILTERFLAG_OOPLOGON) { ConfigOption config = new ConfigOption(Filter.CFG_SETOOPSRCFILE, 0, inFile); objFilter.setConfigOption(config); }
|