Slavus programing blog

My random programing (and other) tips.

Fetching Html Page Over Http in Java Using Google-guava

| Comments

I am using google-guava for some time know, I used it when there was only google-collections, and it is absolutely fabulous. Here is simple trick how to fetch whole html page over http in Java using google guava in one line:

1
Resources.toString(new URL("[http://slavus.net")][],Charsets.UTF_8);

Go ahead and try out google-guava. Guava is great java lib.

Comments