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 booleancreate()booleandelete()booleanequals(Object obj)StringgetName()IDirectorygetParent()ResourcePathgetPath()inthashCode()booleanisChildOf(IDirectory dir)booleanisDescendantOf(IDirectory dir)booleanisInJar()booleanisJavaFile()FiletoJavaFile()StringtoString()URItoURI()
-
-
-
Method Detail
-
getParent
public IDirectory getParent()
-
delete
public boolean delete() throws IOException- Specified by:
deletein interfaceIResource- Throws:
IOException
-
getPath
public ResourcePath getPath()
-
isChildOf
public boolean isChildOf(IDirectory dir)
-
isDescendantOf
public boolean isDescendantOf(IDirectory dir)
- Specified by:
isDescendantOfin interfaceIResource
-
toJavaFile
public File toJavaFile()
- Specified by:
toJavaFilein interfaceIResource
-
isJavaFile
public boolean isJavaFile()
- Specified by:
isJavaFilein interfaceIResource
-
-