public interface IResource
Modifier and Type | Method and Description |
---|---|
boolean |
create() |
boolean |
delete() |
boolean |
exists()
Indicates whether this resource exists.
|
IFileSystem |
getFileSystem()
The file system supporting this resource
|
String |
getName()
Gets this file's or directory's name.
|
IDirectory |
getParent()
Gets this file's our directory's parent directory.
|
ResourcePath |
getPath() |
boolean |
isChildOf(IDirectory dir)
Indicates whether this resource is a direct child of the given directory.
|
boolean |
isDescendantOf(IDirectory dir)
Indicates whether this resource is a descendant of the given directory.
|
boolean |
isInJar() |
boolean |
isJavaFile() |
File |
toJavaFile() |
URI |
toURI() |
IFileSystem getFileSystem()
IDirectory getParent()
String getName()
boolean exists()
boolean delete() throws IOException
IOException
URI toURI()
ResourcePath getPath()
boolean isChildOf(IDirectory dir)
dir
- the directory which would be the parentboolean isDescendantOf(IDirectory dir)
dir
- the directory which would be the ancestorFile toJavaFile()
boolean isJavaFile()
boolean isInJar()
boolean create()
Copyright © 2024. All rights reserved.