public void saveUrl(final String fileName, final String urlString)
            throws MalformedURLException, IOException {
        BufferedInputStream in = null;
        FileOutputStream fout = null;
        
        try {
            in = new BufferedInputStream(new URL(urlString).openStream());
            fout = new FileOutputStream(fileName);

            final byte data[] = new byte[1024];
            int bytesCount;
            
            while ((bytesCount = in.read(data, 0, 1024)) != -1) {
                fout.write(data, 0, bytesCount);
            }
        } finally {
            if (in != null) {
                in.close();
            }
            if (fout != null) {
                fout.close();
            }
        }
    }