Class JavaDirectoryImpl
java.lang.Object
manifold.api.fs.def.JavaResourceImpl
manifold.api.fs.def.JavaDirectoryImpl
- All Implemented Interfaces:
Serializable, IDirectory, IResource
- See Also:
-
Field Summary
Fields inherited from class JavaResourceImpl
_file -
Constructor Summary
ConstructorsConstructorDescriptionJavaDirectoryImpl(IFileSystem fileSystem, File file, IFileSystem.CachingMode cachingMode) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanexists()Indicates whether this resource exists.Constucts a file given the path.booleanhasChildFile(String path) Returns true if the given path represents a child of this directory that exists.booleanList<? extends IDirectory> listDirs()booleanmkdir()relativePath(IResource resource) voidsetCachingMode(IFileSystem.CachingMode cachingMode) Methods inherited from class JavaResourceImpl
create, delete, equals, getFileSystem, getName, getParent, getPath, hashCode, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toString, toURIMethods inherited from interface IResource
create, delete, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
-
Constructor Details
-
JavaDirectoryImpl
-
-
Method Details
-
setCachingMode
-
clearCaches
public void clearCaches()- Specified by:
clearCachesin interfaceIDirectory
-
dir
- Specified by:
dirin interfaceIDirectory
-
file
Description copied from interface:IDirectoryConstucts a file given the path. If the path is relative path, it will be constructed based on the current directory- Specified by:
filein interfaceIDirectory- Parameters:
path- the path of the file- Returns:
- The file that is under the directory with the name
-
mkdir
- Specified by:
mkdirin interfaceIDirectory- Throws:
IOException
-
listDirs
- Specified by:
listDirsin interfaceIDirectory
-
listFiles
- Specified by:
listFilesin interfaceIDirectory
-
relativePath
- Specified by:
relativePathin interfaceIDirectory
-
exists
-
hasChildFile
Description copied from interface:IDirectoryReturns true if the given path represents a child of this directory that exists. It's essentially equivalent to calling file(path).exists(), but in cases where this directory caches its list of children and the path represents a direct child of this directory, this method can be optimized to avoid file system access by looking in the list of cached children.- Specified by:
hasChildFilein interfaceIDirectory- Parameters:
path- the path of the file- Returns:
- true if the path represents a file that exists as a child of this directory
-
isAdditional
public boolean isAdditional()- Specified by:
isAdditionalin interfaceIDirectory- Returns:
- true if this is an "additional" path for resources not copied to the target classpath e.g., config bullshit.
-