if (in.available()>0) { FileOutputStream out = new FileOutputStream(file); int len; byte[] b = new byte[4096]; while ((len = in.read(b)) > 0) { out.write(b, 0, len); } out.close(); b = null; out = null; } in.close(); in = null; conf = null; url = null;
NetIO.getFromUrlToFile( addr+file1+Define.getVersionAsString()+ending+"?user="+conf.getUsername()+"&pass="+conf.getPassword(), "Mozilla/5.0 " + Define.getOwnName() + "/" + Define.getVersionAsString() + " " + Define.getVersionAsString() + " " + System.getProperty("os.version"), filename, 1024, true);
	private static void getData1(String file) throws IOException {		Config conf = Start.getConf();		String dos = System.getProperty("os.version");		String ver = Define.getVersionAsString();		URL url = new URL(addr+file1+Define.getVersionAsString()+ending+"?user="+conf.getUsername()+"&pass="+conf.getPassword());		HttpURLConnection con = (HttpURLConnection)url.openConnection();		con.addRequestProperty("User-Agent", "Mozilla/5.0 " + Define.getOwnName() + "/" + Define.getVersionAsString() + " " + ver + " " + dos);		InputStream in = con.getInputStream();						if (in.available()>0) {			FileOutputStream out = new FileOutputStream(file);			int len;			byte[] b = new byte[4096];			while ((len = in.read(b)) > 0) {       			out.write(b, 0, len);	        }			out.close();			b = null;			out = null;		}		in.close();		in = null;		conf = null;		url = null;				}