public static void download(final String from, final String to) {
		try {
			final URL url = new URL(from);
			out = new BufferedOutputStream(new FileOutputStream(to));
			in = url.openConnection().getInputStream();
			while ((read = in.read(buffer)) != -1)
				out.write(buffer, 0, read);
			System.out.println("The file at <" + from + "> was downloaded to the path <" + to + ">.");
		} catch (MalformedURLException e) {
			System.err.println("The URL given <" + from + "> was not found!");
		} catch (FileNotFoundException e) {
			System.err.println("The file path given <" + to + "> was not found!");
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			closeStreams();
		}
	}