Class AtomicFileWriter

java.lang.Object
java.io.Writer
org.kohsuke.stapler.framework.io.AtomicFileWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class AtomicFileWriter extends Writer
Buffered FileWriter that uses UTF-8.

The write operation is atomic when used for overwriting; it either leaves the original file intact, or it completely rewrites it with new contents.

Author:
Kohsuke Kawaguchi