public class TimestampFilenameFilter extends Object implements FilenameFilter
FilenameFilter
that matches historical log files. The FilenameFilter
matches a filename with a
given prefix, filename and timestamp.Constructor and Description |
---|
TimestampFilenameFilter(File initialFile,
String prefix,
org.joda.time.format.DateTimeFormatter suffixDateFormat)
Constructs a
TimestampFilenameFilter given an initial file, prefix and suffix. |
public TimestampFilenameFilter(File initialFile, String prefix, org.joda.time.format.DateTimeFormatter suffixDateFormat)
TimestampFilenameFilter
given an initial file, prefix and suffix.initialFile
- The initial filename.prefix
- The audit file prefix to match.suffixDateFormat
- The audit file date suffix to match.public boolean accept(File dir, String name)
FilenameFilter
.
accept
in interface FilenameFilter
Copyright 2011-2015 ForgeRock AS.