public class JarEntryDirectoryImpl extends JarEntryResourceImpl implements IJarFileDirectory
_name, _parent
Constructor and Description |
---|
JarEntryDirectoryImpl(IFileSystem fs,
String name,
IJarFileDirectory parent,
JarFileDirectoryImpl jarFile) |
Modifier and Type | Method and Description |
---|---|
void |
clearCaches() |
IDirectory |
dir(String relativePath) |
IFile |
file(String path)
Constucts a file given the path.
|
JarEntryDirectoryImpl |
getOrCreateDirectory(String relativeName) |
JarEntryFileImpl |
getOrCreateFile(String relativeName) |
boolean |
hasChildFile(String path)
Returns true if the given path represents a child of this directory that exists.
|
boolean |
isAdditional() |
List<? extends IDirectory> |
listDirs() |
List<? extends IFile> |
listFiles() |
boolean |
mkdir() |
String |
relativePath(IResource resource) |
create, delete, equals, exists, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, setEntry, toJavaFile, toString, toURI
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
create, delete, exists, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
public JarEntryDirectoryImpl(IFileSystem fs, String name, IJarFileDirectory parent, JarFileDirectoryImpl jarFile)
public JarEntryDirectoryImpl getOrCreateDirectory(String relativeName)
getOrCreateDirectory
in interface IJarFileDirectory
public JarEntryFileImpl getOrCreateFile(String relativeName)
getOrCreateFile
in interface IJarFileDirectory
public IDirectory dir(String relativePath)
dir
in interface IDirectory
public IFile file(String path)
IDirectory
file
in interface IDirectory
path
- the path of the filepublic boolean mkdir()
mkdir
in interface IDirectory
public List<? extends IDirectory> listDirs()
listDirs
in interface IDirectory
public List<? extends IFile> listFiles()
listFiles
in interface IDirectory
public String relativePath(IResource resource)
relativePath
in interface IDirectory
public void clearCaches()
clearCaches
in interface IDirectory
public boolean hasChildFile(String path)
IDirectory
hasChildFile
in interface IDirectory
path
- the path of the filepublic boolean isAdditional()
isAdditional
in interface IDirectory
Copyright © 2024. All rights reserved.