The code of NAV Download is more concise with:
However is this desirable?
public static int update() throws Exception {
InputStream is = (new WebConversation()).getResponse(new GetMethodWebRequest(URL)).getTableStartingWith("Filename").getTableCell(1,0).getLinks()[0].click().getInputStream();
drain(is, new BufferedOutputStream(new FileOutputStream(new File(FILE))));
return execSync(INSTALL);
}
However is this desirable?
<< Home