Package manifold.api.fs.jar
Class JarEntryResourceImpl
- java.lang.Object
-
- manifold.api.fs.jar.JarEntryResourceImpl
-
- All Implemented Interfaces:
IResource
- Direct Known Subclasses:
JarEntryDirectoryImpl,JarEntryFileImpl
public abstract class JarEntryResourceImpl extends Object implements IResource
-
-
Field Summary
Fields Modifier and Type Field Description protected String_nameprotected IJarFileDirectory_parent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreate()booleandelete()booleanequals(Object obj)booleanexists()Indicates whether this resource exists.IFileSystemgetFileSystem()The file system supporting this resourceStringgetName()Gets this file's or directory's name.IDirectorygetParent()Gets this file's our directory's parent directory.ResourcePathgetPath()booleanisChildOf(IDirectory dir)Indicates whether this resource is a direct child of the given directory.booleanisDescendantOf(IDirectory dir)Indicates whether this resource is a descendant of the given directory.booleanisInJar()booleanisJavaFile()voidsetEntry(JarEntry entry)FiletoJavaFile()StringtoString()URItoURI()
-
-
-
Field Detail
-
_parent
protected IJarFileDirectory _parent
-
_name
protected String _name
-
-
Method Detail
-
getFileSystem
public IFileSystem getFileSystem()
Description copied from interface:IResourceThe file system supporting this resource- Specified by:
getFileSystemin interfaceIResource
-
setEntry
public void setEntry(JarEntry entry)
-
getParent
public IDirectory getParent()
Description copied from interface:IResourceGets this file's our directory's parent directory.
-
getName
public String getName()
Description copied from interface:IResourceGets this file's or directory's name.
-
exists
public boolean exists()
Description copied from interface:IResourceIndicates whether this resource exists.
-
getPath
public ResourcePath getPath()
-
isChildOf
public boolean isChildOf(IDirectory dir)
Description copied from interface:IResourceIndicates whether this resource is a direct child of the given directory.
-
isDescendantOf
public boolean isDescendantOf(IDirectory dir)
Description copied from interface:IResourceIndicates whether this resource is a descendant of the given directory.- Specified by:
isDescendantOfin interfaceIResource- Parameters:
dir- the directory which would be the ancestor- Returns:
- true if this is a descendant of the given directory
-
toJavaFile
public File toJavaFile()
- Specified by:
toJavaFilein interfaceIResource
-
isJavaFile
public boolean isJavaFile()
- Specified by:
isJavaFilein interfaceIResource
-
-