public class JavaDirectoryImpl extends JavaResourceImpl implements IDirectory
_file| Constructor and Description |
|---|
JavaDirectoryImpl(IFileSystem fileSystem,
File file,
IFileSystem.CachingMode cachingMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCaches() |
IDirectory |
dir(String relativePath) |
boolean |
exists()
Indicates whether this resource exists.
|
IFile |
file(String path)
Constucts a file given the path.
|
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) |
void |
setCachingMode(IFileSystem.CachingMode cachingMode) |
create, delete, equals, getFileSystem, getName, getParent, getPath, hashCode, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toString, toURIclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreate, delete, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURIpublic JavaDirectoryImpl(IFileSystem fileSystem, File file, IFileSystem.CachingMode cachingMode)
public void setCachingMode(IFileSystem.CachingMode cachingMode)
public void clearCaches()
clearCaches in interface IDirectorypublic IDirectory dir(String relativePath)
dir in interface IDirectorypublic IFile file(String path)
IDirectoryfile in interface IDirectorypath - the path of the filepublic boolean mkdir()
throws IOException
mkdir in interface IDirectoryIOExceptionpublic List<? extends IDirectory> listDirs()
listDirs in interface IDirectorypublic List<? extends IFile> listFiles()
listFiles in interface IDirectorypublic String relativePath(IResource resource)
relativePath in interface IDirectorypublic boolean exists()
IResourcepublic boolean hasChildFile(String path)
IDirectoryhasChildFile in interface IDirectorypath - the path of the filepublic boolean isAdditional()
isAdditional in interface IDirectoryCopyright © 2024. All rights reserved.