Package gw.internal.gosu.module.fs
Class FileSystemImpl
- java.lang.Object
-
- gw.config.BaseService
-
- gw.internal.gosu.module.fs.FileSystemImpl
-
- All Implemented Interfaces:
IService
,IFileSystem
,IPluginHost
public class FileSystemImpl extends BaseService implements IFileSystem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gw.lang.reflect.module.IFileSystem
IFileSystem.CachingMode
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
USE_NEW_API
-
Constructor Summary
Constructors Constructor Description FileSystemImpl(IFileSystem.CachingMode cachingMode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAllCaches()
IFile
getFakeFile(URL url, IModule module)
IDirectory
getIDirectory(File dir)
IDirectory
getIDirectory(URL url)
IDirectory
getIDirectory(Path dir)
IFile
getIFile(File file)
IFile
getIFile(URL url)
IFile
getIFile(Path path)
static File
normalizeFile(File file)
void
setCachingMode(IFileSystem.CachingMode cachingMode)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.plugin.IPluginHost
getInterface
-
-
-
-
Constructor Detail
-
FileSystemImpl
public FileSystemImpl(IFileSystem.CachingMode cachingMode)
-
-
Method Detail
-
getIDirectory
public IDirectory getIDirectory(Path dir)
- Specified by:
getIDirectory
in interfaceIFileSystem
-
getIDirectory
public IDirectory getIDirectory(File dir)
- Specified by:
getIDirectory
in interfaceIFileSystem
-
getIFile
public IFile getIFile(Path path)
- Specified by:
getIFile
in interfaceIFileSystem
-
getIFile
public IFile getIFile(File file)
- Specified by:
getIFile
in interfaceIFileSystem
-
setCachingMode
public void setCachingMode(IFileSystem.CachingMode cachingMode)
- Specified by:
setCachingMode
in interfaceIFileSystem
-
clearAllCaches
public void clearAllCaches()
- Specified by:
clearAllCaches
in interfaceIFileSystem
-
getIDirectory
public IDirectory getIDirectory(URL url)
- Specified by:
getIDirectory
in interfaceIFileSystem
-
getIFile
public IFile getIFile(URL url)
- Specified by:
getIFile
in interfaceIFileSystem
-
getFakeFile
public IFile getFakeFile(URL url, IModule module)
- Specified by:
getFakeFile
in interfaceIFileSystem
-
-