Package gw.internal.gosu.module.fs
Class PathResourceImpl
- java.lang.Object
-
- gw.internal.gosu.module.fs.PathResourceImpl
-
- All Implemented Interfaces:
IResource
,Serializable
- Direct Known Subclasses:
PathDirectoryImpl
,PathFileImpl
public abstract class PathResourceImpl extends Object implements IResource, Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
create()
boolean
delete()
boolean
equals(Object obj)
String
getName()
IDirectory
getParent()
ResourcePath
getPath()
int
hashCode()
boolean
isChildOf(IDirectory dir)
boolean
isDescendantOf(IDirectory dir)
boolean
isInJar()
boolean
isJavaFile()
File
toJavaFile()
String
toString()
URI
toURI()
-
-
-
Method Detail
-
getParent
public IDirectory getParent()
-
delete
public boolean delete() throws IOException
- Specified by:
delete
in interfaceIResource
- Throws:
IOException
-
getPath
public ResourcePath getPath()
-
isChildOf
public boolean isChildOf(IDirectory dir)
-
isDescendantOf
public boolean isDescendantOf(IDirectory dir)
- Specified by:
isDescendantOf
in interfaceIResource
-
toJavaFile
public File toJavaFile()
- Specified by:
toJavaFile
in interfaceIResource
-
isJavaFile
public boolean isJavaFile()
- Specified by:
isJavaFile
in interfaceIResource
-
-