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 class
private class
private class
FileSystemImpl.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.CachingMode
private Map<String,
IProtocolAdapter> (package private) static final Object
static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private IDirectory
getFakeFile
(URL url, IModule module) private static String
getFileSuffix
(String name) getIDirectory
(File dir) getIDirectory
(URL url) getIDirectory
(Path dir) private static boolean
isAssumedFileSuffix
(String suffix) (package private) static boolean
isDirectory
(File f) private void
loadProtocolAdapter
(Collection<IProtocolAdapter> adapters, String adapterName) private void
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
-
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:
getIDirectory
in interfaceIFileSystem
-
getIDirectory
- Specified by:
getIDirectory
in interfaceIFileSystem
-
getIFile
- Specified by:
getIFile
in interfaceIFileSystem
-
getIFile
- Specified by:
getIFile
in interfaceIFileSystem
-
normalizeFile
-
setCachingMode
- Specified by:
setCachingMode
in interfaceIFileSystem
-
createDir
-
clearAllCaches
public void clearAllCaches()- Specified by:
clearAllCaches
in interfaceIFileSystem
-
isDirectory
-
getFileSuffix
-
getIDirectory
- Specified by:
getIDirectory
in interfaceIFileSystem
-
getIFile
- Specified by:
getIFile
in interfaceIFileSystem
-
getFakeFile
- Specified by:
getFakeFile
in interfaceIFileSystem
-
loadProtocolAdapters
private void loadProtocolAdapters() -
loadProtocolAdapter
-
isAssumedFileSuffix
-