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, toURI
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
create, delete, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
public JavaDirectoryImpl(IFileSystem fileSystem, File file, IFileSystem.CachingMode cachingMode)
public void setCachingMode(IFileSystem.CachingMode cachingMode)
public void clearCaches()
clearCaches
in interface IDirectory
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() throws IOException
mkdir
in interface IDirectory
IOException
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 boolean exists()
IResource
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.