public abstract class JarEntryResourceImpl extends Object implements IResource
| Modifier and Type | Field and Description |
|---|---|
protected JarEntry |
_entry |
protected JarFileDirectoryImpl |
_jarFile |
protected String |
_name |
protected IJarFileDirectory |
_parent |
| Modifier | Constructor and Description |
|---|---|
protected |
JarEntryResourceImpl(String name,
IJarFileDirectory parent,
JarFileDirectoryImpl jarFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
create() |
boolean |
delete() |
boolean |
equals(Object obj) |
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() |
void |
setEntry(JarEntry entry) |
protected void |
setExists() |
File |
toJavaFile() |
String |
toString() |
URI |
toURI() |
protected JarEntry _entry
protected IJarFileDirectory _parent
protected JarFileDirectoryImpl _jarFile
protected String _name
protected JarEntryResourceImpl(String name, IJarFileDirectory parent, JarFileDirectoryImpl jarFile)
public void setEntry(JarEntry entry)
protected void setExists()
public IDirectory getParent()
IResourcepublic String getName()
IResourcepublic boolean exists()
IResourcepublic boolean delete()
throws IOException
delete in interface IResourceIOExceptionpublic ResourcePath getPath()
public boolean isChildOf(IDirectory dir)
IResourcepublic boolean isDescendantOf(IDirectory dir)
IResourceisDescendantOf in interface IResourcedir - the directory which would be the ancestorpublic File toJavaFile()
toJavaFile in interface IResourcepublic boolean isJavaFile()
isJavaFile in interface IResourceCopyright © 2021. All rights reserved.