Package antlr

Class PreservingFileWriter

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

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.
  • Field Details

    • target_file

      protected File target_file
    • tmp_file

      protected File tmp_file
  • Constructor Details

  • Method Details