title: How to validate header/tailer of csv file before processing in Spring Batch
body: <p>I have a csv file which I need to process and insert data in database which is very simple job which I did,
  but now my problem is before inserting data in database I need to check if first line of csv file having header or not if not discard the file e.g. first line has to be  HDR|DEPT|DATE
  last line - TLR|NumberOfRows
  if these first and last line doesn't exist ignore this file,</p>