Package thredds.inventory
Class DateExtractorFromName
- java.lang.Object
-
- thredds.inventory.DateExtractorFromName
-
- All Implemented Interfaces:
DateExtractor
public class DateExtractorFromName extends Object implements DateExtractor
Extract Date from filename, using DateFromString.getDateUsingSimpleDateFormat on the name or path- Since:
- Jun 26, 2009
-
-
Constructor Summary
Constructors Constructor Description DateExtractorFromName(String dateFormatMark, boolean useName)
Ctor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendarDate
getCalendarDate(MFile mfile)
CalendarDate
getCalendarDateFromPath(String path)
Date
getDate(MFile mfile)
String
toString()
-
-
-
Constructor Detail
-
DateExtractorFromName
public DateExtractorFromName(String dateFormatMark, boolean useName)
Ctor- Parameters:
dateFormatMark
- DemarkatedCount or DemarkatedMatchuseName
- use name if true, else use path
-
-
Method Detail
-
getDate
public Date getDate(MFile mfile)
- Specified by:
getDate
in interfaceDateExtractor
-
getCalendarDate
public CalendarDate getCalendarDate(MFile mfile)
- Specified by:
getCalendarDate
in interfaceDateExtractor
-
getCalendarDateFromPath
public CalendarDate getCalendarDateFromPath(String path)
- Specified by:
getCalendarDateFromPath
in interfaceDateExtractor
-
-