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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate classFileSystemImpl.ResourceExtractor<J extends IResource>Nested classes/interfaces inherited from interface gw.lang.reflect.module.IFileSystem
IFileSystem.CachingMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<File,IDirectory> private IFileSystem.CachingModeprivate Map<String,IProtocolAdapter> (package private) static final Objectstatic boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate IDirectorygetFakeFile(URL url, IModule module) private static StringgetFileSuffix(String name) getIDirectory(File dir) getIDirectory(URL url) getIDirectory(Path dir) private static booleanisAssumedFileSuffix(String suffix) (package private) static booleanisDirectory(File f) private voidloadProtocolAdapter(Collection<IProtocolAdapter> adapters, String adapterName) private voidstatic FilenormalizeFile(File file) voidsetCachingMode(IFileSystem.CachingMode cachingMode) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gw.plugin.IPluginHost
getInterface
-
Field Details
-
_cachedDirInfo
-
_cachingMode
-
_iDirectoryResourceExtractor
-
_iFileResourceExtractor
-
_protocolAdapters
-
USE_NEW_API
public static boolean USE_NEW_API -
CACHED_FILE_SYSTEM_LOCK
-
FILE_SUFFIXES
-
-
Constructor Details
-
FileSystemImpl
-
-
Method Details
-
getIDirectory
- Specified by:
getIDirectoryin interfaceIFileSystem
-
getIDirectory
- Specified by:
getIDirectoryin interfaceIFileSystem
-
getIFile
- Specified by:
getIFilein interfaceIFileSystem
-
getIFile
- Specified by:
getIFilein interfaceIFileSystem
-
normalizeFile
-
setCachingMode
- Specified by:
setCachingModein interfaceIFileSystem
-
createDir
-
clearAllCaches
public void clearAllCaches()- Specified by:
clearAllCachesin interfaceIFileSystem
-
isDirectory
-
getFileSuffix
-
getIDirectory
- Specified by:
getIDirectoryin interfaceIFileSystem
-
getIFile
- Specified by:
getIFilein interfaceIFileSystem
-
getFakeFile
- Specified by:
getFakeFilein interfaceIFileSystem
-
loadProtocolAdapters
private void loadProtocolAdapters() -
loadProtocolAdapter
-
isAssumedFileSuffix
-