title: Skip header, body and footer lines from file on Spring Batch
body: <p>I have this specifically file:</p>
  
  <pre><code>H;COD;CREATION_DATE;TOT_POR;TYPE
  H;001;2013-10-30;20;R
  D;DETAIL_VALUE;PROP_VALUE
  D;003;3030
  D;002;3031
  D;005;3032
  T;NUM_FOL;TOT
  T;1;503.45
  </code></pre>
  
  <p>As you can see, it has header/body/footer lines. I'm looking for a ItemReader that skip these lines. I've done this ItemReader below who identify those lines, using <strong>PatternMatchingCompositeLineMapper</strong>.</p>
  
  <pre><code>&lt;bean id="fileReader" class="org.springframework.batch.item.file.FlatFileItemReader"&gt;
          &lt;property name="resource" ref="myFileReference" /&gt;
          &lt;property name="lineMapper"&gt;
              &lt;bean class="org.springframework.batch.item.file.mapping.PatternMatchingCompositeLineMapper"&gt;
                  &lt;property name="tokenizers"&gt;
                      &lt;map&gt;
                          &lt;entry key="H*" value-ref="headerLineTokenizer"/&gt;
                          &lt;entry key="D*" value-ref="bodyLineTokenizer"/&gt;
                          &lt;entry key="T*" value-ref="footerLineTokenizer"/&gt;
                      &lt;/map&gt;
                  &lt;/property&gt;
                  &lt;property name="fieldSetMappers"&gt;
                      &lt;map&gt;
                          &lt;entry key="H*" value-ref="headerMapper"/&gt;
                          &lt;entry key="D*" value-ref="bodyMapper"/&gt;
                          &lt;entry key="T*" value-ref="footerMapper"/&gt;
                      &lt;/map&gt;
                  &lt;/property&gt;
              &lt;/bean&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>I tried to add linesToSkip property equals 1, but it only skipped the header line. Is there a way to skip the first line of each block(header, body and footer)?</p>
  
  <p>Thks.</p>