|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.pipeline.stage.FtpFileDownloadStage.FileDateMatchCriterion
public static class FtpFileDownloadStage.FileDateMatchCriterion
Matches files by matching their filesystem timestamp to a date range.
Constructor Summary | |
---|---|
FtpFileDownloadStage.FileDateMatchCriterion(Date startDate,
Date endDate)
Construct a new criterion to match file timestamp to a range of dates. |
Method Summary | |
---|---|
boolean |
matches(org.apache.commons.net.ftp.FTPFile file)
Test the given file's date against this criterion. |
String |
toString()
Printable version of this Criterion indicating the inclusive date range used for file date matching. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FtpFileDownloadStage.FileDateMatchCriterion(Date startDate, Date endDate)
startDate
- starting date (inclusive) of the date rangeendDate
- ending date (inclusive) of the date rangeMethod Detail |
---|
public boolean matches(org.apache.commons.net.ftp.FTPFile file)
matches
in interface FtpFileDownloadStage.Criterion
file
- file to compare to
true
if the file date falls into the time window of
[startDate, endDate], false
otherwisepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |