title: Java proper parsing
body: <p>I m finding the best way to parse hand written data into objects.</p>
  
  <p>Lets say I have an interface called <code>IEvent</code>.</p>
  
  <p>Lets say I have two class <code>EventNewPlayer</code> and <code>EventUpdateTime</code> which both implements the interface <code>IEvent</code></p>
  
  <p>The class <code>EventNewPlayer</code> requires 2 integers and one string. Lets say position <code>X</code> and <code>Y</code> and the name of the player</p>
  
  <p>The class <code>EventUpdateTime</code> only requires one argument: the time.</p>
  
  <p>I would like to make as create as much events as I want, from a hand written file</p>
  
  <p>The file would look like this:</p>
  
  <pre><code>NEWPLAYER, 4, 2, joe
  NEWPLAYER, 8, 9, bob
  UPDATETIME, 1
  NEWPLAYER, 8, 9, carl
  UPDATETIME, 3
  </code></pre>
  
  <p>I would like to generate a list of events from this file.
  Also I would like in the future to add as much event as I want.</p>
  
  <p>What is the best/proper/maintenable way to do this?</p>
  
  <p>Sorry about any english mistakes, English is not my first langage.</p>