MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / download

Method download

Samples/src/com/codename1/samples/HTTPUtil.java:243–245  ·  view source on GitHub ↗
(URL u, File f, boolean requireHttps)

Source from the content-addressed store, hash-verified

241
242
243 public static File download(URL u, File f, boolean requireHttps) throws IOException, HttpsRequiredException {
244 return download(null, u, f, requireHttps);
245 }
246 public static File download(DownloadResponse resp, URL u, File f, boolean requireHttps) throws IOException, HttpsRequiredException {
247 URLConnection conn = u.openConnection();
248

Callers 1

updateMethod · 0.95

Calls 15

getHeaderFieldMethod · 0.95
addMethod · 0.95
addMethod · 0.95
getInputStreamMethod · 0.95
getContentLengthLongMethod · 0.95
updateProgressMethod · 0.95
getSHA1FingerprintMethod · 0.80
getResponseCodeMethod · 0.65
getResponseMessageMethod · 0.65
toStringMethod · 0.65
trimMethod · 0.65
getHostMethod · 0.65

Tested by

no test coverage detected