debug tests
This commit is contained in:
parent
ffb64f9ed9
commit
1bb82a33ef
|
@ -122,12 +122,14 @@ public class ProfileComparer implements ProfileKnowledgeProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void download(String address, String filename) throws IOException {
|
private void download(String address, String filename) throws IOException {
|
||||||
|
System.out.print("Download "+address+" to "+filename);
|
||||||
URL url = new URL(address);
|
URL url = new URL(address);
|
||||||
URLConnection c = url.openConnection();
|
URLConnection c = url.openConnection();
|
||||||
InputStream s = c.getInputStream();
|
InputStream s = c.getInputStream();
|
||||||
FileOutputStream f = new FileOutputStream(filename);
|
FileOutputStream f = new FileOutputStream(filename);
|
||||||
transfer(s, f, 1024);
|
transfer(s, f, 1024);
|
||||||
f.close();
|
f.close();
|
||||||
|
System.out.println(" ... "+new File(filename).length()+" bytes");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue