title: Parsing csv via column order in spring batch
body: <p>I've got a CSV in the format...</p>
  
  <pre><code>Kitten URL,Kitten Name,# of Reviews,Rating,Categories,,,,,,,,,,,,,
  www.happykitten.com,happykittem.com,111746,7.8,Clothes &amp; Fashion,Fashion Accessories,Ladies wear,Menswear,,,,,,,,,,
  animedkitten.co.uk,Animed Kitten,33918,9.6,Pets,,,,,,,,,,,,,
  </code></pre>
  
  <p>So the first columns are <code>Kitten URL,Kitten Name,# of Reviews,Rating</code> then the rest are the possible categories listed as extra properties.</p>
  
  <p>I'm trying to use Spring batch so I'm specifying the dumb object to represent this CSV.  The first problem I've got is (using <a href="http://spring.io/guides/gs/batch-processing/" rel="nofollow">the example from Spring documentation</a> I don't see how I can parse a CSV with spaces in the title.  Is it possible to use Spring batch like this?  Can I annotate each getting like in Hibernate with the title of the csv column?</p>
  
  <p>My dumb object was going to be something like...</p>
  
  <pre><code>public class ImportDataObject {
      private String kittenUrl;
      private String kittenName;
      private int numOfReviews;
      public String getKittenUrl() {
          return kittenUrl;
      }
      public void setKittenUrl(String kittenUrl) {
          this.kittenUrl = kittenUrl;
      }
      public String getKittenName() {
          return kittenName;
      }
      public void setKittenName(String kittenName) {
          this.kittenName = kittenName;
      }
      public int getNumOfReviews() {
          return numOfReviews;
      }
      public void setNumOfReviews(int numOfReviews) {
          this.numOfReviews = numOfReviews;
      }
  
  }
  </code></pre>
  
  <p>I only really want to read the first 2 columns, append some strings, then persist the rest of the CSV.</p>
  
  <p>I'm also considering the best approach to use for these multiple commas afterwards.  Unfortunately this is how I've got the data and it's not something I can change.</p>