title: Get class from schema programmatically (Apache avro)
body: <p>I am using <a href="http://avro.apache.org/" rel="nofollow">Apache Avro</a>.</p>
  
  <p>I defined the schema json string in my java code:</p>
  
  <pre><code>String schemaStr = STRING_IN_JSON_FORMAT;
  
  //use Parser to parse above string to Schema object
  Schema.Parser parser = new Schema.Parser(); 
  Schema schema = parser.parse(schemaStr);
  //How to programmatically get the class from the schema I got at this point?
  </code></pre>
  
  <p>How to continue my code to get the class from the schema programmatically?</p>