@@ -0,0 +1,1103 @@
+package com.trebuh.clarity;%0A%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.URL;%0A%0Apublic class PhotoFetcher %7B%0A    private byte%5B%5D getUrlBytes(String urlSpec) throws IOException %7B%0A        URL url = new URL(urlSpec);%0A        HttpURLConnection connection = (HttpURLConnection) url.openConnection();%0A%0A        try %7B%0A            ByteArrayOutputStream out = new ByteArrayOutputStream();%0A            InputStream in = connection.getInputStream();%0A%0A            if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) %7B%0A                return null;%0A            %7D%0A%0A            int bytesRead;%0A            byte%5B%5D buffer = new byte%5B1024%5D;%0A            while ((bytesRead = in.read(buffer)) %3E 0) %7B%0A                out.write(buffer, 0, bytesRead);%0A            %7D%0A            out.close();%0A            return out.toByteArray();%0A        %7D finally %7B%0A            connection.disconnect();%0A        %7D%0A    %7D%0A%0A    public String getUrl(String urlSpec) throws IOException %7B%0A        return new String(getUrlBytes(urlSpec));%0A    %7D%0A%7D%0A

create PhotoFetcher class