Package com.github.robtimus.filesystems
Interface FileSystemMap.FileSystemFactory<S extends FileSystem>
-
- Type Parameters:
S
- The type of file system to create.
- Enclosing class:
- FileSystemMap<S extends FileSystem>
public static interface FileSystemMap.FileSystemFactory<S extends FileSystem>
A factory for file system.- Author:
- Rob Spoor
- Since:
- 2.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description S
create(URI uri, Map<String,?> env)
Creates a new file system.
-
-
-
Method Detail
-
create
S create(URI uri, Map<String,?> env) throws IOException
Creates a new file system.- Parameters:
uri
- The URI representing the file system.env
- A map of provider specific properties to configure the file system.- Returns:
- The created file system.
- Throws:
IOException
- If the file system could not be created.- See Also:
FileSystemProvider.newFileSystem(URI, Map)
,FileSystemMap.add(URI, Map)
,FileSystemMap.addIfNotExists(URI, Map)
-
-