title: Java.net Which goes fastest when you parse html from online?
body: <p>Using java.net, java.io, what is the fastest way to parse html from online, and load it to a file or the console? Is buffered writer/buffered reader faster than inputstreamreader/outputstreamwriter? Are writers and readers faster than outputstreams and inputstreams?<br>
  I am experiencing serious lag with the following output writer/stream:</p>
  
  <pre><code>URLConnection ii;
  BufferedReader iik = new BufferedReader(new InputStreamReader(ii.getInputStream()));
  
  String op;
  
  while(iik.readLine()!=null) {
      op=iik.readLine();
      System.out.println(op);
  }   
  </code></pre>
  
  <p>But curiously i am experiencing close to no lagtime with the following code:</p>
  
  <pre><code>URLConnection ii=i.openConnection();
  Reader xh=new InputStreamReader(ii.getInputStream());
  
  int r;
  Writer xy=new PrintWriter(System.out);
  
  while((r=xh.read())!=-1) {
      xy.write(r);
  }  
  
  xh.close();
  xy.close();
  </code></pre>
  
  <p>What is going on here?</p>