org.makumba.commons
Class FileUtils
java.lang.Object
org.makumba.commons.FileUtils
public class FileUtils
- extends Object
Gathers file related utilits.
- Version:
- $Id: FileUtils.java 5154 2010-05-18 22:01:40Z rosso_nero $
- Author:
- Rudolf Mayer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static final Logger logger
FileUtils
public FileUtils()
getAllFilesInDirectory
public static ArrayList<String> getAllFilesInDirectory(String root,
String[] skipPaths,
FileFilter filter)
- Return all files that match the given filter, in any subdir of the given root directory.
processFilesInDirectory
public static void processFilesInDirectory(String root,
String[] skipPaths,
File f,
ArrayList<String> allFiles,
FileFilter filter)
- Process files in one directory.
getInputStream
public static InputStream getInputStream(URL url)
throws IOException
- Gets an input stream from a file-system file or JAR file
- Throws:
IOException