public interface IAbstractFolder extends IAbstractResource
Modifier and Type | Interface and Description |
---|---|
static interface |
IAbstractFolder.FilenameFilter
Instances of classes that implement this interface are used to
filter filenames.
|
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
getFile(java.lang.String name)
Returns an
IAbstractFile representing a child of the current folder with the
given name. |
IAbstractFolder |
getFolder(java.lang.String name)
Returns an
IAbstractFolder representing a child of the current folder with the
given name. |
boolean |
hasFile(java.lang.String name)
Returns true if the receiver contains a file with a given name
|
java.lang.String[] |
list(IAbstractFolder.FilenameFilter filter)
Returns a list of all existing file and directory members in this folder
that satisfy the specified filter.
|
IAbstractResource[] |
listMembers()
Returns a list of all existing file and directory members in this folder.
|
delete, exists, getName, getOsLocation, getParentFolder, getPath
boolean hasFile(java.lang.String name)
name
- the name of the file. This is the name without the path leading to the
parent folder.IAbstractFile getFile(java.lang.String name)
IAbstractFile
representing a child of the current folder with the
given name. The file may not actually exist.name
- the name of the file.IAbstractFolder getFolder(java.lang.String name)
IAbstractFolder
representing a child of the current folder with the
given name. The folder may not actually exist.name
- the name of the folder.IAbstractResource[] listMembers()
java.lang.String[] list(IAbstractFolder.FilenameFilter filter)
filter
- A filename filter instance. Must not be null.File.getName()
).
The array can be empty but is never null.