org.apache.torque.util
Class SimpleScanner

java.lang.Object
  extended by org.codehaus.plexus.util.AbstractScanner
      extended by org.codehaus.plexus.util.DirectoryScanner
          extended by org.apache.torque.util.SimpleScanner
All Implemented Interfaces:
org.codehaus.plexus.util.Scanner

public class SimpleScanner
extends org.codehaus.plexus.util.DirectoryScanner

This class provides a simple method for scanning a directory for files that match include/exclude patterns


Field Summary
 
Fields inherited from class org.codehaus.plexus.util.DirectoryScanner
basedir, dirsDeselected, dirsExcluded, dirsIncluded, dirsNotIncluded, everythingIncluded, filesDeselected, filesExcluded, filesIncluded, filesNotIncluded, haveSlowResults
 
Fields inherited from class org.codehaus.plexus.util.AbstractScanner
DEFAULTEXCLUDES, excludes, includes, isCaseSensitive
 
Constructor Summary
SimpleScanner()
           
SimpleScanner(File baseDir, String[] includes, String[] excludes)
           
SimpleScanner(File baseDir, String include, String exclude)
           
 
Method Summary
protected static String[] getArray(String s)
           
 List<File> getFiles()
          This method returns a sorted list of files that match an include pattern but do not match an exclude pattern
 
Methods inherited from class org.codehaus.plexus.util.DirectoryScanner
getBasedir, getDeselectedDirectories, getDeselectedFiles, getExcludedDirectories, getExcludedFiles, getIncludedDirectories, getIncludedFiles, getNotIncludedDirectories, getNotIncludedFiles, isEverythingIncluded, isSelected, isSymbolicLink, scan, scandir, setBasedir, setBasedir, setFollowSymlinks, slowScan
 
Methods inherited from class org.codehaus.plexus.util.AbstractScanner
addDefaultExcludes, couldHoldIncluded, isExcluded, isIncluded, match, match, matchPath, matchPath, matchPatternStart, matchPatternStart, setCaseSensitive, setExcludes, setIncludes, setupDefaultFilters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleScanner

public SimpleScanner()

SimpleScanner

public SimpleScanner(File baseDir,
                     String include,
                     String exclude)

SimpleScanner

public SimpleScanner(File baseDir,
                     String[] includes,
                     String[] excludes)
Method Detail

getArray

protected static final String[] getArray(String s)

getFiles

public List<File> getFiles()
This method returns a sorted list of files that match an include pattern but do not match an exclude pattern



Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.