Class FileProcessor

java.lang.Object
org.chenile.filewatch.handler.FileProcessor

public class FileProcessor extends Object
FileProcessor knows to handle each file that was discovered by the file watcher This would process the file and finally dispose it off from the watched folder to the processed folder. The processor only starts reading with a header file. The header file is read for the following reasons:
  1. To obtain all the header records that are required to call a particular service
  2. To obtain the pointer to the actual file and encoding type
  3. To determine if the actual file has been up-loaded completely into the watched folder. It is assumed that the header file will be uploaded only after the actual file has been uploaded. Also, the last property of the header file should be the last line of the header file. Unless that property is written to, file processor will not process the file.
Author:
Raja Shankar Kolluru