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, writepublic PreservingFileWriter(String file) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamWriterIOExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.