jodd.io.findfile
Class WildcardFindFile

java.lang.Object
  extended by jodd.io.findfile.FindFile
      extended by jodd.io.findfile.WildcardFindFile

public class WildcardFindFile
extends FindFile

FindFile that matches file names using *, ? and, optionally, ** wildcards.

See Also:
RegExpFindFile

Field Summary
protected  boolean usePathWildcards
           
protected  java.lang.String wildcard
           
 
Fields inherited from class jodd.io.findfile.FindFile
fileList, includeDirs, includeFiles, listSubfilesAfterFolder, recursive
 
Constructor Summary
WildcardFindFile()
           
WildcardFindFile(java.lang.String wildcard)
           
WildcardFindFile(java.lang.String wildcard, boolean usePathWildcards)
           
 
Method Summary
protected  boolean acceptFile(java.io.File currentFile)
          Called on each file entry (file or directory) and returns true if file passes search criteria.
 java.lang.String getWildcard()
          Returns the matching wildcard.
 boolean isUsePathWildcards()
          Returns true if path wildcards are in use.
 WildcardFindFile setUsePathWildcards(boolean usePathWildcards)
          Set path wildcard matching algorithm.
 void setWildcard(java.lang.String wildcard)
          Sets the matching wildcard.
 
Methods inherited from class jodd.io.findfile.FindFile
addSearchPath, isIncludeDirs, isIncludeFiles, isListSubfilesAfterFolder, isRecursive, iterator, listFiles, nextFile, searchPath, searchPath, searchPath, searchPath, searchPath, searchPath, searchPath, searchPath, setIncludeDirs, setIncludeFiles, setListSubfilesAfterFolder, setRecursive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wildcard

protected java.lang.String wildcard

usePathWildcards

protected boolean usePathWildcards
Constructor Detail

WildcardFindFile

public WildcardFindFile()

WildcardFindFile

public WildcardFindFile(java.lang.String wildcard)

WildcardFindFile

public WildcardFindFile(java.lang.String wildcard,
                        boolean usePathWildcards)
Method Detail

getWildcard

public java.lang.String getWildcard()
Returns the matching wildcard.


setWildcard

public void setWildcard(java.lang.String wildcard)
Sets the matching wildcard.


isUsePathWildcards

public boolean isUsePathWildcards()
Returns true if path wildcards are in use.


setUsePathWildcards

public WildcardFindFile setUsePathWildcards(boolean usePathWildcards)
Set path wildcard matching algorithm.


acceptFile

protected boolean acceptFile(java.io.File currentFile)
Description copied from class: FindFile
Called on each file entry (file or directory) and returns true if file passes search criteria.

Overrides:
acceptFile in class FindFile


Copyright © 2003-2012 Jodd Team