public static void getURLResource(String ourputFile,String urlStr) throws Exception {
URL resourceUrl = new URL(urlStr); HttpURLConnection con = (HttpURLConnection) resourceUrl.openConnection(); DataInputStream reader = new DataInputStream(con.getInputStream());