@@ -0,0 +1,1228 @@
+package com.qrokodial.sparkle.utilities.io.web;%0A%0Aimport com.qrokodial.sparkle.utilities.io.StreamUtils;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.UnsupportedEncodingException;%0Aimport java.net.*;%0A%0Apublic class WebUtils %7B%0A    public static String getContent(String url, String encoding) throws IOException %7B%0A        return StreamUtils.readFully(getStream(url, encoding), encoding);%0A    %7D%0A%0A    public static InputStream getStream(String url, String encoding) throws IOException %7B%0A        try %7B%0A            return toUrl(url, encoding).openStream();%0A        %7D catch (IOException e) %7B%0A            throw new IOException(%22Error getting stream from URL%22, e);%0A        %7D%0A    %7D%0A%0A    public static URL toUrl(String urlString, String encoding) throws IOException %7B%0A        try %7B%0A            URL url = new URL(URLDecoder.decode(urlString, encoding));%0A            URI uri = new URI(url.getProtocol(), url.getUserInfo(), url.getHost(), url.getPort(), url.getPath(), url.getQuery(), url.getRef());%0A            return uri.toURL();%0A        %7D catch (URISyntaxException %7C MalformedURLException %7C UnsupportedEncodingException e) %7B%0A            throw new IOException(%22Error building URL from string%22, e);%0A        %7D%0A    %7D%0A%7D%0A

Add WebUtils class for getting web content