Reading HTML code from URL

I have designed a program to read html codes from URLs. It works but only reads a part of the code, and I don't know what's the problem, I am really desperate. Here's the code, plz help.

...

URL url = new URL("http://%myURL%");

HttpURLConnection con = (HttpURLConnection) url.openConnection();

InputStream is = con.getInputStream();

byte[] code = new byte[ is.available() ];

System.out.println(is.available()); // returns size, its value is too low, that is the reason why the code is incomplete

is.read(code);

String html = new String(code);

System.out.println(html); // the html code prints well, but incomplete

...

[688 byte] By [henrikfma] at [2007-11-15]