- System.err.println("Warning: response code " + responseCode
- + " for " + url);
- }
- is = new BufferedInputStream(conn.getInputStream());
- if (outFile != null)
- {
- FileOutputStream fio = new FileOutputStream(outFile);
- byte[] bb = new byte[32 * 1024];
- int l;
- while ((l = is.read(bb)) > 0)