Package org.apache.commons.vfs2
Class VFS
java.lang.Object
org.apache.commons.vfs2.VFS
The main entry point for the VFS. Used to create
FileSystemManager
instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close()
Closes the defaultFileSystemManager
instance.static FileSystemManager
Gets the defaultFileSystemManager
instance.static boolean
TODO.static FileSystemManager
reset()
Resets the FileSystemManager to the default.static void
setManager
(FileSystemManager manager) Sets the file system manager.static void
setUriStyle
(boolean uriStyle) TODO.
-
Method Details
-
close
Closes the defaultFileSystemManager
instance.Warning, if you close the default instance, a new one will be created by
getManager()
.- Since:
- 2.8.0
-
getManager
Gets the defaultFileSystemManager
instance.Warning, if you close this instance you may affect all current and future users of this manager singleton.
- Returns:
- The FileSystemManager.
- Throws:
FileSystemException
- if an error occurs creating the manager.
-
isUriStyle
TODO.- Returns:
- TODO.
-
reset
Resets the FileSystemManager to the default.- Returns:
- the new FileSystemManager.
- Throws:
FileSystemException
- if an error occurs creating the manager.- Since:
- 2.5.0
-
setManager
Sets the file system manager.- Parameters:
manager
- the file system manager- Since:
- 2.2
-
setUriStyle
TODO.- Parameters:
uriStyle
- TODO.
-