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

Method update

Samples/src/com/codename1/samples/HTTPUtil.java:157–159  ·  view source on GitHub ↗
(URL u, File destFile, File tempDir, boolean requireHttps, boolean requireFingerprintMatch)

Source from the content-addressed store, hash-verified

155 }
156
157 public static boolean update(URL u, File destFile, File tempDir, boolean requireHttps, boolean requireFingerprintMatch) throws IOException, HttpsRequiredException, FingerprintChangedException {
158 return update(u, destFile, tempDir, requireHttps, requireFingerprintMatch, false);
159 }
160
161 public static boolean update(URL u, File destFile, File tempDir, boolean requireHttps, boolean requireFingerprintMatch, boolean forceCheck) throws IOException, HttpsRequiredException, FingerprintChangedException {
162 if (destFile.exists() && "github.com".equals(u.getHost()) && u.getPath().contains("/releases/download/")) {

Callers 1

updateMethod · 0.95

Calls 15

getExpiryDateMethod · 0.95
currentTimeMillisMethod · 0.95
existsMethod · 0.95
doesETagMatchMethod · 0.95
saveExpiresMethod · 0.95
createTempFileMethod · 0.95
clearMethod · 0.95
downloadMethod · 0.95
getMethod · 0.95
readFileToStringMethod · 0.95
equalsMethod · 0.95
writeStringToFileMethod · 0.95

Tested by

no test coverage detected