|
||||||||||
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.FileNameMatchCriterion
public static class FtpFileDownloadStage.FileNameMatchCriterion
Matches file names based upon the Java regex supplied in the constructor.
Constructor Summary | |
---|---|
FtpFileDownloadStage.FileNameMatchCriterion(String pattern)
Construct a new criterion to match on file names. |
Method Summary | |
---|---|
boolean |
matches(org.apache.commons.net.ftp.FTPFile file)
Test the given file's name against this criterion. |
String |
toString()
Printable version of this Criterion indicating the Java regex used for filename matching. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FtpFileDownloadStage.FileNameMatchCriterion(String pattern)
pattern
- Java regex pattern specifying acceptable file namesMethod Detail |
---|
public boolean matches(org.apache.commons.net.ftp.FTPFile file)
matches
in interface FtpFileDownloadStage.Criterion
file
- file to compare to
true
if the filename matches the filename pattern of this criterion,
false
otherwisepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |