public class FileScanner extends org.apache.commons.io.DirectoryWalker<File>
| Constructor and Description |
|---|
FileScanner() |
FileScanner(boolean relativize) |
FileScanner(Pattern regex) |
FileScanner(Pattern regex,
boolean relativize) |
FileScanner(String regex) |
FileScanner(String regex,
boolean relativize) |
| Modifier and Type | Method and Description |
|---|---|
FileScanner |
disableFileListPopulation() |
List<File> |
getFiles(File startDirectory)
Returns a list of files.
|
void |
handleFile(File file)
Overwrite this method to process files on the fly.
|
protected void |
handleFile(File file,
int depth,
Collection<File> results) |
List<File> |
scanFiles(File startDirectory) |
public FileScanner()
public FileScanner(String regex)
public FileScanner(Pattern regex)
public FileScanner(boolean relativize)
public FileScanner(String regex, boolean relativize)
public FileScanner(Pattern regex, boolean relativize)
public FileScanner disableFileListPopulation()
public List<File> scanFiles(File startDirectory) throws IOException
IOExceptionpublic List<File> getFiles(File startDirectory) throws IOException
startDirectory - the root directory for the searchIOException - if there is a problem with I/Oprotected void handleFile(File file, int depth, Collection<File> results) throws IOException
handleFile in class org.apache.commons.io.DirectoryWalker<File>IOExceptionpublic void handleFile(File file) throws IOException
file - the fileIOException - if the is an I/O problemCopyright © 2014–2017 Github jjYBdx4IL Projects. All rights reserved.