public static void getUserData() { ByteArrayOutputStream out = new ByteArrayOutputStream(); try { URL url = new URL(DownloadThread.getUserDataAddr()); InputStream in = url.openStream(); if (in.available()>0) { int len; byte[] b = new byte[100]; while ((len = in.read(b)) != -1) { out.write(b,0,len); } b  = null; } in.close(); in  = null; out.close(); } catch (IOException e) { if (Define.doDebug()) { Base.LogThis(e.toString(), true); } }
public static void getUserData() throws IOException { OutputStream out = NetIO.getFromUrlToStream( DownloadThread.getUserDataAddr(), Define.getUA());
	public static void getUserData() {		ByteArrayOutputStream out = new ByteArrayOutputStream();		try {			URL url = new URL(DownloadThread.getUserDataAddr());			InputStream in = url.openStream();			if (in.available()>0) {				int len;				byte[] b = new byte[100];				while ((len = in.read(b)) != -1) {					out.write(b,0,len);				}				b  = null;			}			in.close();			in  = null;			out.close();		} 		catch (IOException e) {			if (Define.doDebug()) {				Base.LogThis(e.toString(), true);			} 		}		String[] tmp=DownloadThread.code(out.toString(),0).split("\\|");		Config conf = Start.getConf();		conf.seteMail(tmp[0]);		conf.setUrl(tmp[1]);		conf.setTelNr(tmp[2]);			}