title: How to Parse a delimited flat file to a POJO
body: <p>Appreciate if someone could point and recommend on how to parse a flat pipe delimited file to JAVA Pojo.</p>
  
  <p>eg.
  Flat File
  0001|XYZ|120</p>
  
  <p>this is required to be read into a POJO having</p>
  
  <pre><code>public class pojo {
  
  private String acct;
  private String customer;
  private int balance;
  }
  </code></pre>
  
  <p>I can read entire input file as a collection, however, would end up setting each token into a pojo member. Instead, I would like to parse into pojo members. Something similar to CASTOR XML mapping to POJO.</p>
  
  <p>Appreciate any help in this regards. Thanks in advance</p>