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

Constructor Index

 o FileUtils()

Method Index

 o blendFilesToVector(Vector, String[])
 o getExtension(String)
return the extension of a file or null of it doesn't exist.
 o getFilesFromExtension(String, String[])

Given a directory and an array of extensions...

 o isValidFile(String, String[])

Constructors

 o FileUtils
 public FileUtils()

Methods

 o 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.
 o 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"

 o blendFilesToVector
 private static Vector blendFilesToVector(Vector v,
                                          String files[])
 o isValidFile
 private static boolean isValidFile(String file,
                                    String extensions[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index