...
No Format |
---|
private FileSystemManager fsManager = VFS.getManager(); |
the getManager() method probably returned a \[http://commons.apache.org/vfs/apidocs/org/apache/commons/vfs/impl/StandardFileSystemManager.html StandardFileSystemManager\] which extends the DefaultFileSystemManager class and implements the FileSystemManager interface.unmigrated-wiki-markup Wiki Markup
What you are probably after is the \[http://commons.apache.org/vfs/apidocs/org/apache/commons/vfs/impl/DefaultFileSystemManager.html#close() close()\] method of the DefaultFileSystemManager to clean up any temporary files and close all providers. Cast the FileSystemManager to a DefaultFileSystemManager access the close() method like this:
No Format |
---|
((DefaultFileSystemManager) fsManager).close(); |
...