Example usage for org.apache.commons.vfs2 FileSystem getFileSystemManager

List of usage examples for org.apache.commons.vfs2 FileSystem getFileSystemManager

Introduction

In this page you can find the example usage for org.apache.commons.vfs2 FileSystem getFileSystemManager.

Prototype

FileSystemManager getFileSystemManager();

Source Link

Document

Returns a reference to the FileSytemManager.

Usage

From source file:org.pentaho.vfs.ui.CustomVfsUiPanel.java

public FileObject resolveFile(String fileUri, FileSystemOptions opts) throws FileSystemException {
    FileSystem fs = null;
    if (vfsFileChooserDialog.rootFile != null) {
        fs = vfsFileChooserDialog.rootFile.getFileSystem();
    }/*from w w  w .ja va  2  s  .c  o  m*/
    if (fs != null) {
        if (opts == null) {
            return fs.getFileSystemManager().resolveFile(fileUri);
        } else {
            fs.getFileSystemManager().resolveFile(fileUri, opts);
        }
    }
    return null;
}