public static void downloadUrl(final String url) throws IOException {
final URL downloader = new URL(url);
final URLConnection urlConnection = downloader.openConnection();
if (null != downloader.getUserInfo()) {
BASE64Encoder encoder = new BASE64Encoder();
final String basicAuth = "Basic " + new String(encoder.encode(
downloader.getUserInfo().getBytes()));
urlConnection.setRequestProperty("Authorization", basicAuth);
}
final BufferedReader inputStream = new BufferedReader(new InputStreamReader(
urlConnection.getInputStream()));