|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.file.DirectoryContents
public class DirectoryContents
Represents one directory path with all its contained files.
| Constructor Summary | |
|---|---|
DirectoryContents(java.lang.String name)
Initialize the new instance with the directory's name. |
|
DirectoryContents(java.lang.String name,
FileInfo[] fileInfos)
Initialize the new instance with the directory's name and its content |
|
| Method Summary | |
|---|---|
void |
addFileInfo(FileInfo info)
Adds the given file info to the list of contained file info objects |
FileInfo[] |
getContainedFiles()
Returns an array of information objects on all files contained in this directory |
java.lang.String |
getDirectoryName()
Returns the name of the directory this object represents |
int |
numberOfContainedFiles()
Returns the number of files that are directly exist in this directory |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryContents(java.lang.String name)
public DirectoryContents(java.lang.String name,
FileInfo[] fileInfos)
| Method Detail |
|---|
public java.lang.String getDirectoryName()
public int numberOfContainedFiles()
public FileInfo[] getContainedFiles()
public void addFileInfo(FileInfo info)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||