Using file preprocessing
If you cannot derive the file type easily from the file name and some more processing is necessary, the framework provides a preprocessing class that you customize to your needs.
About this task
Enable preprocessing of files to implement an advanced logic to determine a file type.
Procedure
- In the file <PathToYourApplication>/config/config.cfg, find the ite.ingest.reader.preprocessing parameter description
-
Set the parameter to on to enable file preprocessing as follows: ite.ingest.reader.preprocessing=on
The line activates preprocessing and the framework provides the PreFileReader class for you to customize.