Package gw.fs.jar
Class JarEntryResourceImpl
java.lang.Object
gw.fs.jar.JarEntryResourceImpl
- All Implemented Interfaces:
IResource
- Direct Known Subclasses:
JarEntryDirectoryImpl
,JarEntryFileImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JarEntry
private boolean
protected JarFileDirectoryImpl
protected String
protected IJarFileDirectory
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JarEntryResourceImpl
(String name, IJarFileDirectory parent, JarFileDirectoryImpl jarFile) -
Method Summary
Modifier and TypeMethodDescriptionboolean
create()
boolean
delete()
boolean
boolean
exists()
Indicates whether this resource exists.private String
getName()
Gets this file's or directory's name.Gets this file's our directory's parent directory.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
void
protected void
toString()
toURI()
-
Field Details
-
_entry
-
_parent
-
_jarFile
-
_name
-
_exists
private boolean _exists
-
-
Constructor Details
-
JarEntryResourceImpl
-
-
Method Details
-
setEntry
-
setExists
protected void setExists() -
getParent
Description copied from interface:IResource
Gets this file's our directory's parent directory. -
getName
Description copied from interface:IResource
Gets this file's or directory's name. -
exists
public boolean exists()Description copied from interface:IResource
Indicates whether this resource exists. -
delete
- Specified by:
delete
in interfaceIResource
- Throws:
IOException
-
toURI
-
getEntryName
-
getPath
-
isChildOf
Description copied from interface:IResource
Indicates whether this resource is a direct child of the given directory. -
isDescendantOf
Description copied from interface:IResource
Indicates whether this resource is a descendant of the given directory.- Specified by:
isDescendantOf
in interfaceIResource
- Parameters:
dir
- the directory which would be the ancestor- Returns:
- true if this is a descendant of the given directory
-
toJavaFile
- Specified by:
toJavaFile
in interfaceIResource
-
isJavaFile
public boolean isJavaFile()- Specified by:
isJavaFile
in interfaceIResource
-
toString
-
equals
-
create
public boolean create() -
isInJar
public boolean isInJar()
-