public class PreservingFileWriter extends FileWriter
Modifier and Type | Field and Description |
---|---|
protected File |
target_file |
protected File |
tmp_file |
Constructor and Description |
---|
PreservingFileWriter(String file) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the file and see if the actual target is different
if so the target file is overwritten by the copy.
|
flush, getEncoding, write, write, write
public PreservingFileWriter(String file) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStreamWriter
IOException