jdepend.framework
Class FileManager
java.lang.Object
jdepend.framework.FileManager
public class FileManager
extends java.lang.Object
The FileManager
class is responsible for
extracting Java class files (.class
files)
from a collection of registered directories.
- Mike Clark (mike@clarkware.com)
- Clarkware Consulting, Inc.
FileManager() - Constructs an empty
FileManager
instance.
|
boolean | acceptClassFile(File file) - Indicates whether the specified file is
a valid Java class file.
|
boolean | acceptClassFileName(String name) - Indicates whether the specified file name
is a valid Java class file.
|
boolean | acceptFile(File file) - Indicates whether the specified file is
a valid file.
|
void | acceptInnerClasses(boolean b) - Determines whether inner classes should be collected.
|
boolean | acceptJarFile(File file) - Indicates whether the specified file is
a valid jar file file.
|
void | addDirectory(String name) - Adds the specified directory to the collection
of directories to be managed.
|
Collection | extractFiles() - Returns the Java class files
contained in the managed directories.
|
FileManager
public FileManager()
Constructs an empty FileManager
instance.
acceptClassFile
public boolean acceptClassFile(File file)
Indicates whether the specified file is
a valid Java class file.
true
if the file is valid;
false
otherwise.
acceptClassFileName
public boolean acceptClassFileName(String name)
Indicates whether the specified file name
is a valid Java class file.
name
- Candidate file name.
true
if the name is valid;
false
otherwise.
acceptFile
public boolean acceptFile(File file)
Indicates whether the specified file is
a valid file.
true
if the file is valid;
false
otherwise.
acceptInnerClasses
public void acceptInnerClasses(boolean b)
Determines whether inner classes should be collected.
b
- true
to collect inner classes;
false
otherwise.
acceptJarFile
public boolean acceptJarFile(File file)
Indicates whether the specified file is
a valid jar file file.
true
if the file is valid;
false
otherwise.
addDirectory
public void addDirectory(String name)
throws IOException
Adds the specified directory to the collection
of directories to be managed.
extractFiles
public Collection extractFiles()
Returns the Java class files
contained in the managed directories.
- Collection of source and class files.
Copyright B) 1999-2003 Clarkware Consulting, Inc.