Get the CONTENT , Keywords, Title of a page using Apache TIKA
<p>Anything wrong with this code.. If I add this line (<code>String ct= t.parseToString(content);</code>) below the <code>Tika t = new Tika();</code> then I get the actual content of the url back but after that I get null values for Keywords, Title and Authors. And If I remove this line (<code>String ct= t.parseToString(content);</code>) then I get the actual values for Title, Author and Keywords.. Why is it so??</p>

<pre><code>HttpGet request = new HttpGet("http://qualnet.host.com/departments/qualnet/index.html");

        HttpResponse response = client.execute(request);
        HttpEntity entity = response.getEntity();
        InputStream content = entity.getContent();
        System.out.println(content)    

        Tika t = new Tika();
        String ct= t.parseToString(content);
        System.out.println(ct);

        Metadata md = new Metadata();



        Reader r = t.parse(content, md);
        System.out.println(md);


        System.out.println("Keywords: " +md.get("keywords"));
        System.out.println("Title: " +md.get("title"));
        System.out.println("Authors: " +md.get("authors"));
</code></pre>
