Class AtomicFiles


  • public final class AtomicFiles
    extends Object
    A utility for creating "atomic" file writers.

    An atomic writer copies any existing file at the given path to a temporary location, then writes to the same temporary location, before moving the file back to the desired output path once the write is fully complete.