public interface IResource
| Modifier and Type | Method and Description |
|---|---|
boolean |
create() |
boolean |
delete() |
boolean |
exists()
Indicates whether this resource exists.
|
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() |
IDirectory getParent()
String getName()
boolean exists()
boolean delete()
throws IOException
IOExceptionURI 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 © 2018. All rights reserved.