|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttribble.net.ftp.shell.ForeachFilter
class ForeachFilter
FTP command interpreter 'foreach' filename filter.
Copyright ©2007 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by
by the United States Department of State as a terrorist, or terrorist
government or agency, to use and distribute this source code provided
that the original copyright notice remains present and unaltered.
Interp
Field Summary | |
---|---|
(package private) static java.lang.String |
REV
Revision information. |
Constructor Summary | |
---|---|
ForeachFilter(java.lang.String[] patterns)
Constructor. |
|
ForeachFilter(java.lang.String[] patterns,
boolean ignoreCase)
Constructor. |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String fname)
Determine if a filename matches one of the given patterns. |
(package private) void |
setMax(int max)
Set the maximum number of filename matches. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String REV
Constructor Detail |
---|
ForeachFilter(java.lang.String[] patterns)
patterns
- Filename patterns to match.ForeachFilter(java.lang.String[] patterns, boolean ignoreCase)
patterns
- Filename patterns to match.ignoreCase
- If true, filename matching is not case-sensitive (i.e., alphabetic case is
ignored), otherwise it is (case is not ignored).Method Detail |
---|
void setMax(int max)
max
- Maximum number of filenames to match. Zero (0) indicates that there is no
maximum.public boolean accept(java.io.File dir, java.lang.String fname)
accept
in interface java.io.FilenameFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |