public void download() throws IOException {
		if (!file.exists()) {
			File temp = new File(file.toString().substring(0,
					file.toString().lastIndexOf("\\") + 1));
			temp.mkdirs();
			file.createNewFile();
		}
		BufferedInputStream bis = new BufferedInputStream(url.openStream());
		BufferedOutputStream bos = new BufferedOutputStream(
				new FileOutputStream(file));
		byte[] buffer = new byte[1024];
		int len;
		while ((len = bis.read(buffer)) != -1) {
			bos.write(buffer, 0, len);
		}
		bis.close();
		bos.close();
	}