Package hec.io

Class LogFileNamer

java.lang.Object
hec.io.LogFileNamer
All Implemented Interfaces:
LogTimeIntervals, TimeIntervals

public class LogFileNamer extends Object implements LogTimeIntervals
  • Constructor Details

    • LogFileNamer

      public LogFileNamer(String directory, String baseFileName, String timeInterval, boolean localTime)
  • Method Details

    • setOut

      public void setOut(FileOutputStream out)
    • isValidTimeInterval

      public boolean isValidTimeInterval()
    • getTimeForNextFile

      public long getTimeForNextFile()
    • getNewFilename

      public String getNewFilename(long currentTime) throws IOException
      Throws:
      IOException