gov.nasa.pds.report.util
Class DateLogFilter
java.lang.Object
gov.nasa.pds.report.util.DateLogFilter
public class DateLogFilter
- extends Object
- Author:
- resneck
This class is used to filter specific logs based upon the date of the data
that they contain. At the time of implementation, we did'nt have enough
filters to justify making this a subclass of a Filter class or interface or
such, but this could be done in the future if more numerous and complex
filters (especially log filters) are required for the Report Service.
The class works by taking in up to two Date Strings using the setStartDate()
and setEndDate() methods to mark the start and end days (both inclusive) of
the desired range of logs and setting the filename pattern using the
setPattern() method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateLogFilter
public DateLogFilter()
setStartDate
public static void setStartDate(String dateStr)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setEndDate
public static void setEndDate(String dateStr)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getStartDateString
public static String getStartDateString(String format)
getEndDateString
public static String getEndDateString(String format)
setPattern
public static void setPattern(String pattern)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
match
public static boolean match(String filename)
throws ParseException,
ReportManagerException
- Throws:
ParseException
ReportManagerException
unsetAll
public static void unsetAll()
Copyright © 2010–2015 Planetary Data System. All rights reserved.