public class AtomicFileWriter extends Writer
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.
| Constructor and Description |
|---|
AtomicFileWriter(File f) |
public AtomicFileWriter(File f) throws IOException
IOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void commit()
throws IOException
IOExceptionpublic File getTemporaryFile()
Copyright © 2014. All rights reserved.