public class DateExtractorFromName extends java.lang.Object implements DateExtractor
Constructor and Description |
---|
DateExtractorFromName(java.lang.String dateFormatMark,
boolean useName)
Ctor
|
Modifier and Type | Method and Description |
---|---|
CalendarDate |
getCalendarDate(MFile mfile) |
CalendarDate |
getCalendarDateFromPath(java.lang.String path) |
java.util.Date |
getDate(MFile mfile) |
java.lang.String |
toString() |
public DateExtractorFromName(java.lang.String dateFormatMark, boolean useName)
dateFormatMark
- DemarkatedCount or DemarkatedMatchuseName
- use name if true, else use pathpublic java.util.Date getDate(MFile mfile)
getDate
in interface DateExtractor
public CalendarDate getCalendarDate(MFile mfile)
getCalendarDate
in interface DateExtractor
public CalendarDate getCalendarDateFromPath(java.lang.String path)
getCalendarDateFromPath
in interface DateExtractor
public java.lang.String toString()
toString
in class java.lang.Object