title: How to get topic list from kafka server in Java
body: <p>I am using <code>kafka 0.8</code> version and very much new to it.</p>
  
  <p>I want to know the list of topics created in <code>kafka server</code> along with it's
  metadata.
  Is there any API available to find out this?</p>
  
  <p>Basically, I need to write a Java consumer that should auto-discover any topic in <code>kafka server</code>.There is API to fetch <code>TopicMetadata</code>, but this needs name of topic as input
  parameters.I need information for all topics present in server.</p>