|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.util.FileUtils
public class FileUtils
Constructor Summary | |
---|---|
protected |
FileUtils()
Constructor a no argument protected constructor |
Method Summary | |
---|---|
static void |
copyFile(FileInputStream source,
FileOutputStream dest)
copy a file |
static void |
copyFiles(File baseDir,
File newParent,
String pattern)
Copy files matching a certain pattern from one directory to another |
static void |
deleteFiles(File baseDir,
String pattern)
delete files or directories matching a specified pattern |
static void |
findFiles(FilenameFilter filter,
File baseDir,
List fileList)
Find files matching a specified pattern in a specified location |
static File[] |
findFiles(String fileDesc,
File baseDir)
Find files matching a specified pattern in a specified location |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FileUtils()
Method Detail |
---|
public static void deleteFiles(File baseDir, String pattern)
baseDir
- -
root directory from which to start - must be existing
directorypattern
- -
the pattern of file names to erasepublic static void copyFiles(File baseDir, File newParent, String pattern)
baseDir
- -
the directory to copy from - must be existingnewParent
- -
the directory to copy to - must be existingpattern
- -
the pattern of files to copypublic static File[] findFiles(String fileDesc, File baseDir)
fileDesc
- -
the filename pattern you are searching forbaseDir
- -
the directory to search - must be existing
public static void findFiles(FilenameFilter filter, File baseDir, List fileList)
filter
- -
filename filter of matching patternbaseDir
- -
the directory from which to start the searchfileList
- -
a Linked List where the found files will be returnedpublic static void copyFile(FileInputStream source, FileOutputStream dest) throws IOException
source
- -
the source file input streamdest
- -
the destination file output stream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |