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 voidclose()Closes the defaultFileSystemManagerinstance.static FileSystemManagerGets the defaultFileSystemManagerinstance.static booleanTODO.static FileSystemManagerreset()Resets the FileSystemManager to the default.static voidsetManager(FileSystemManager manager) Sets the file system manager.static voidsetUriStyle(boolean uriStyle) TODO.
-
Method Details
-
close
Closes the defaultFileSystemManagerinstance.Warning, if you close the default instance, a new one will be created by
getManager().- Since:
- 2.8.0
-
getManager
Gets the defaultFileSystemManagerinstance.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.
-