Searched refs:atomicFile (Results 1 – 3 of 3) sorted by relevance
105 AtomicFile atomicFile = new AtomicFile(new File(f, PROFILE_OBJ_FILE)); in saveProfile() local109 fos = atomicFile.startWrite(); in saveProfile()113 atomicFile.finishWrite(fos); in saveProfile()115 atomicFile.failWrite(fos); in saveProfile()166 AtomicFile atomicFile = new AtomicFile(profileObjectFile); in deserialize() local169 ois = new ObjectInputStream(atomicFile.openRead()); in deserialize()
301 AtomicFile atomicFile = new AtomicFile(getLocationCacheFile()); in storeLocation() local304 fos = atomicFile.startWrite(); in storeLocation()343 atomicFile.finishWrite(fos); in storeLocation()346 atomicFile.failWrite(fos); in storeLocation()373 AtomicFile atomicFile = new AtomicFile(getLocationCacheFile()); in readLocationFromCacheFile() local374 try (FileInputStream fis = atomicFile.openRead()) { in readLocationFromCacheFile()
442 AtomicFile atomicFile = null; in save() local445 atomicFile = new AtomicFile(file); in save()446 stream = atomicFile.startWrite(); in save()454 atomicFile.finishWrite(stream); in save()459 if (atomicFile != null) { in save()460 atomicFile.failWrite(stream); in save()