code: public static String readUrlContent( String url )
  	throws IOException, URISyntaxException {
  
  		InputStream in = null;
  		try {
  			URI uri = UriUtils.urlToUri( url );
  			in = uri.toURL().openStream();
  			ByteArrayOutputStream os = new ByteArrayOutputStream();
  
  			Utils.copyStreamSafely( in, os );
  			return os.toString( "UTF-8" );
  
  		} finally {
  			closeQuietly( in );
  		}
  	}
docs: Reads the content of an URL (assumed to be text content).
  @param url an URL
  @return a non-null string
  @throws IOException
  @throws URISyntaxException