|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jsfunit.analysis.util.FileUtils
public class FileUtils
Utility class for file handling.
| Nested Class Summary | |
|---|---|
static class |
FileUtils.FileExtensionFilter
A FilenameFilter implementation that accepts all files that have an extension from a list passed into this filter. |
static class |
FileUtils.FolderFilter
A FileFilter that accepts all folders. |
| Constructor Summary | |
|---|---|
FileUtils()
|
|
| Method Summary | |
|---|---|
static String |
extractExtension(String fileName)
Extract the file-extension |
static List<String> |
findFiles(File folder,
List<String> allowedExtensions)
Find all files in the passed in directory. |
static List<String> |
findFiles(String folderPath,
List<String> allowedExtensions)
Find all files in the passed in directory. |
static List<String> |
findFilesRecursive(File rootFolder,
List<String> allowedExtensions)
Find all files in the passed in directory and all sub-directories. |
static List<String> |
findFilesRecursive(String rootPath,
List<String> allowedExtensions)
Find all files in the passed in directory and all sub-directories. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtils()
| Method Detail |
|---|
public static List<String> findFilesRecursive(String rootPath,
List<String> allowedExtensions)
rootPath - path of the root-directoryallowedExtensions - list off allowed file extensions
public static List<String> findFilesRecursive(File rootFolder,
List<String> allowedExtensions)
rootFolder - path of the root-directoryallowedExtensions - list off allowed file extensions
public static List<String> findFiles(String folderPath,
List<String> allowedExtensions)
folderPath - path of the root-directoryallowedExtensions - list off allowed file extensions
public static List<String> findFiles(File folder,
List<String> allowedExtensions)
folder - File object of a folderallowedExtensions - list off allowed file extensions
public static String extractExtension(String fileName)
fileName - the file name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||