Package manifold.api.fs.jar
Class JarEntryResourceImpl
java.lang.Object
manifold.api.fs.jar.JarEntryResourceImpl
- All Implemented Interfaces:
IResource
- Direct Known Subclasses:
JarEntryDirectoryImpl,JarEntryFileImpl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancreate()booleandelete()booleanbooleanexists()Indicates whether this resource exists.The file system supporting this resourcegetName()Gets this file's or directory's name.Gets this file's our directory's parent directory.getPath()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()booleanvoidtoString()toURI()
-
Field Details
-
_parent
-
_name
-
-
Method Details
-
getFileSystem
Description copied from interface:IResourceThe file system supporting this resource- Specified by:
getFileSystemin interfaceIResource
-
setEntry
-
getParent
Description copied from interface:IResourceGets this file's our directory's parent directory. -
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. -
delete
public boolean delete() -
toURI
-
getPath
-
isChildOf
Description copied from interface:IResourceIndicates whether this resource is a direct child of the given directory. -
isDescendantOf
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
- Specified by:
toJavaFilein interfaceIResource
-
isJavaFile
public boolean isJavaFile()- Specified by:
isJavaFilein interfaceIResource
-
toString
-
equals
-
create
public boolean create() -
isInJar
public boolean isInJar()
-