title: Getting Full HTML in Java
body: <p>I am working on a project that will parse through a database's(specificall New York Times online database <a href="http://query.nytimes.com/search/sitesearch/#/McCain/from20061201to20080603/allresults/1/allauthors/oldest/" rel="nofollow">http://query.nytimes.com/search/sitesearch/#/McCain/from20061201to20080603/allresults/1/allauthors/oldest/</a>) html code to find certain keywords, but it the code I got from oracle is not working to get the full html. I have been able to use this code before for other projects, so I am not sure why it is not reading off all of the html.</p>
  
  <p>Thanks :)                        </p>
  
  <pre><code>   URL oracle = new URL("http://query.nytimes.com/search/sitesearch/#/McCain/from20061201to20080603/allresults/1/allauthors/oldest/");
      URLConnection yc = oracle.openConnection();
      yc.connect();
      BufferedReader in = new BufferedReader(new InputStreamReader(
                                  yc.getInputStream()));
      System.out.println(yc.getContentType());
      String inputLine;
      while ((inputLine = in.readLine()) != null) 
          System.out.println(inputLine);
      in.close();
  </code></pre>