@Override public FileSystem newFileSystem(final URI uri, final Map<String, ?> env) throws IllegalArgumentException, IOException, SecurityException, FileSystemAlreadyExistsException { checkNotNull("uri", uri); checkNotNull("env", env); throw new FileSystemAlreadyExistsException(uri.toString()); }
@Override public FileSystem newFileSystem(final URI uri, final Map<String, ?> env) throws IllegalArgumentException, IOException, SecurityException, FileSystemAlreadyExistsException { checkNotNull("uri", uri); checkNotNull("env", env); throw new FileSystemAlreadyExistsException(uri.toString()); }
@Override public FileSystem newFileSystem(final Path path, final Map<String, ?> env) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException { checkNotNull("path", path); checkNotNull("env", env); throw new FileSystemAlreadyExistsException(path.toString()); }
@Override public FileSystem newFileSystem(final Path path, final Map<String, ?> env) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException { checkNotNull("path", path); checkNotNull("env", env); throw new FileSystemAlreadyExistsException(path.toString()); }
@Override public FileSystem newFileSystem(final URI uri, final Map<String, ?> env) throws IllegalArgumentException, IOException, SecurityException, FileSystemAlreadyExistsException { checkNotNull("uri", uri); checkNotNull("env", env); throw new FileSystemAlreadyExistsException(); }
@Override public FileSystem newFileSystem(final Path path, final Map<String, ?> env) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException { checkNotNull("path", path); checkNotNull("env", env); throw new FileSystemAlreadyExistsException(); }
private void validateFSName(URI uri, String fsName) { if (fsManager.containsKey(fsName)) { throw new FileSystemAlreadyExistsException("There is already a FS for " + uri + "."); } if (fsName.contains("/")) { String fsNameRoot = fsName.substring(0, fsName.indexOf("/")); if (fsManager.containsKey(fsNameRoot)) { throw new AmbiguousFileSystemNameException("The file system name" + fsName + " is ambiguous with" + " another FS registered"); } } if (fsManager.containsRoot(fsName)) { throw new AmbiguousFileSystemNameException("The file system name" + fsName + " is ambiguous with" + " another FS registered"); } }