antlr
Class PreservingFileWriter
FileWriter
antlr.PreservingFileWriter
public class PreservingFileWriter
extends FileWriter
PreservingFileWriter only overwrites target if the new file is different.
Mainly added in order to prevent big and unnecessary recompiles in C++
projects.
I/O is buffered.
void | close() - Close the file and see if the actual target is different
if so the target file is overwritten by the copy.
|
target_file
protected File target_file
tmp_file
protected File tmp_file
PreservingFileWriter
public PreservingFileWriter(String file)
throws IOException
close
public void close()
throws IOException
Close the file and see if the actual target is different
if so the target file is overwritten by the copy. If not we do nothing