Run Filter In Process

By default, Filter runs out-of-process. However, you can enable in-process filtering through the API or in the formats.ini file. If the type of process is not specified in the formats.ini or in the API, Filter is run out-of-process. If the type of process is specified in the formats.ini and in the API, the setting in the API takes precedence.

To run Filter in process

  • To specify that filtering should run in-process through the Java API, set the FILTERFLAG_INPROCESS flag when you instantiate the Filter object.

    Filter objFilter = new Filter("YOUR_KEYVIEW_LICENSE", Filter.CHARSET_UTF8, Filter.FILTERFLAG_INPROCESS);
  • To specify that filtering should run in-process by modifying formats.ini, set the default_inprocess parameter in the [FilterSDK_Config] section to 1. By default this parameter is set to 0 (zero), which enables out-of-process filtering.