Searched refs:atomicFile (Results 1 – 3 of 3) sorted by relevance
106 AtomicFile atomicFile = new AtomicFile(new File(f, PROFILE_OBJ_FILE)); in saveProfile() local110 fos = atomicFile.startWrite(); in saveProfile()114 atomicFile.finishWrite(fos); in saveProfile()116 atomicFile.failWrite(fos); in saveProfile()167 AtomicFile atomicFile = new AtomicFile(profileObjectFile); in deserialize() local170 ois = new ObjectInputStream(atomicFile.openRead()); in deserialize()
291 AtomicFile atomicFile = new AtomicFile(getLocationCacheFile()); in storeLocation() local294 fos = atomicFile.startWrite(); in storeLocation()333 atomicFile.finishWrite(fos); in storeLocation()336 atomicFile.failWrite(fos); in storeLocation()363 AtomicFile atomicFile = new AtomicFile(getLocationCacheFile()); in readLocationFromCacheFile() local364 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()