Example usage for java.nio.file FileSystemNotFoundException FileSystemNotFoundException

List of usage examples for java.nio.file FileSystemNotFoundException FileSystemNotFoundException

Introduction

In this page you can find the example usage for java.nio.file FileSystemNotFoundException FileSystemNotFoundException.

Prototype

public FileSystemNotFoundException() 

Source Link

Document

Constructs an instance of this class.

Usage

From source file:de.tiqsolutions.hdfs.HadoopFileSystemProvider.java

@Override
public FileSystem getFileSystem(URI uri) {
    checkURI(uri);//  ww  w  . j a  va2 s. co  m
    String key = getURIKey(uri);
    FileSystem fs = fileSystems.get(key);
    if (fs == null)
        throw new FileSystemNotFoundException();
    return fs;
}