All Packages Class Hierarchy This Package Previous Next Index
Class buildtools.FileUtils
java.lang.Object
|
+----buildtools.FileUtils
- public class FileUtils
- extends Object
Misc utils for handing source files.
- Version:
- $Id: FileUtils.java,v 1.1 1999/12/15 16:19:14 burton Exp $
- Author:
- Kevin A. Burton
-
FileUtils()
-
-
blendFilesToVector(Vector, String[])
-
-
getExtension(String)
- return the extension of a file or null of it doesn't exist.
-
getFilesFromExtension(String, String[])
-
Given a directory and an array of extensions...
-
isValidFile(String, String[])
-
FileUtils
public FileUtils()
getExtension
public static String getExtension(String file)
- return the extension of a file or null of it doesn't exist.
If the extension is anything past the right of the last ".". So for a file
like "test.java" the extension would be "java"
- Returns:
- the extension of a file or null of it doesn't exist.
getFilesFromExtension
public static String[] getFilesFromExtension(String directory,
String extensions[])
-
Given a directory and an array of extensions... return an array of compliant
files.
The given extensions should be like "java" and not like ".java"
blendFilesToVector
private static Vector blendFilesToVector(Vector v,
String files[])
isValidFile
private static boolean isValidFile(String file,
String extensions[])
All Packages Class Hierarchy This Package Previous Next Index