Package adams.core.io

Class LogEntryWriter


  • public class LogEntryWriter
    extends Object
    Helper class for writing log entries to a file (in CSV format).
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • LogEntryWriter

        public LogEntryWriter()
    • Method Detail

      • rewrite

        public static boolean rewrite​(String filename)
        Starts a new log file (writes the header).
        Parameters:
        filename - the log file to start
        Returns:
        true if successfully started
      • write

        public static boolean write​(String filename,
                                    LogEntry log)
        Appends the given log entry.
        Parameters:
        filename - the file to store the log entry in
        log - the entry to store
        Returns:
        true if successfully written