public class FilePurgeDirectoryWalker extends org.apache.commons.io.DirectoryWalker
Constructor and Description |
---|
FilePurgeDirectoryWalker(org.apache.commons.io.filefilter.IOFileFilter fileFilter)
Constructs a FilePurgeDirectoryWalker
|
Modifier and Type | Method and Description |
---|---|
List<File> |
getFilesToPurge(String directory) |
protected String |
getLastSubDirectoryName(String directoryName)
Finds the last subdirectory name of the given directory name and returns it
|
protected boolean |
handleDirectory(File directory,
int depth,
Collection results) |
protected void |
handleDirectoryEnd(File directory,
int depth,
Collection results) |
protected void |
handleDirectoryStart(File directory,
int depth,
Collection results) |
protected void |
handleEnd(Collection results) |
protected void |
handleFile(File file,
int depth,
Collection results) |
protected void |
handleStart(File startDirectory,
Collection results) |
public FilePurgeDirectoryWalker(org.apache.commons.io.filefilter.IOFileFilter fileFilter)
public List<File> getFilesToPurge(String directory)
org.kuali.ole.sys.batch.service.FilePurgeDirectoryWalker#getFilesToPurge(java.lang.String, java.util.List)
protected boolean handleDirectory(File directory, int depth, Collection results) throws IOException
handleDirectory
in class org.apache.commons.io.DirectoryWalker
IOException
DirectoryWalker.handleDirectory(java.io.File, int, java.util.Collection)
protected String getLastSubDirectoryName(String directoryName)
directoryName
- a directory name with a sub directoryprotected void handleDirectoryEnd(File directory, int depth, Collection results) throws IOException
handleDirectoryEnd
in class org.apache.commons.io.DirectoryWalker
IOException
DirectoryWalker.handleDirectoryEnd(java.io.File, int, java.util.Collection)
protected void handleDirectoryStart(File directory, int depth, Collection results) throws IOException
handleDirectoryStart
in class org.apache.commons.io.DirectoryWalker
IOException
DirectoryWalker.handleDirectoryStart(java.io.File, int, java.util.Collection)
protected void handleEnd(Collection results) throws IOException
handleEnd
in class org.apache.commons.io.DirectoryWalker
IOException
DirectoryWalker.handleEnd(java.util.Collection)
protected void handleFile(File file, int depth, Collection results) throws IOException
handleFile
in class org.apache.commons.io.DirectoryWalker
IOException
DirectoryWalker.handleFile(java.io.File, int, java.util.Collection)
protected void handleStart(File startDirectory, Collection results) throws IOException
handleStart
in class org.apache.commons.io.DirectoryWalker
IOException
DirectoryWalker.handleStart(java.io.File, java.util.Collection)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.