jdepend.framework
public class FileManager extends Object
FileManager class is responsible for
extracting Java class files (.class files)
from a collection of registered directories.
| Constructor Summary | |
|---|---|
| FileManager()
Constructs an empty FileManager
instance. | |
| Method Summary | |
|---|---|
| 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
instance.Parameters: file Candidate file.
Returns: true if the file is valid;
false otherwise.
Parameters: name Candidate file name.
Returns: true if the name is valid;
false otherwise.
Parameters: file Candidate file.
Returns: true if the file is valid;
false otherwise.
Parameters: b true to collect inner classes;
false otherwise.
Parameters: file Candidate file.
Returns: true if the file is valid;
false otherwise.
Parameters: name Directory name.
Throws: IOException If the directory is invalid.
Returns: Collection of source and class files.