debug tests

This commit is contained in:
Grahame Grieve 2019-09-15 21:34:10 +10:00
parent ffb64f9ed9
commit 1bb82a33ef
1 changed files with 2 additions and 0 deletions

View File

@ -122,12 +122,14 @@ public class ProfileComparer implements ProfileKnowledgeProvider {
}
private void download(String address, String filename) throws IOException {
System.out.print("Download "+address+" to "+filename);
URL url = new URL(address);
URLConnection c = url.openConnection();
InputStream s = c.getInputStream();
FileOutputStream f = new FileOutputStream(filename);
transfer(s, f, 1024);
f.close();
System.out.println(" ... "+new File(filename).length()+" bytes");
}