public FileSystem newFileSystem (Path path, Map<String, ?> env) throws IOException

Constructs a new FileSystem to access the contents of a file as a file system.

This method is intended for specialized providers of pseudo file systems where the contents of one or more files is treated as a file system. The env parameter is a map of provider specific properties to configure the file system.

If this provider does not support the creation of such file systems or if the provider does not recognize the file type of the given file then it throws UnsupportedOperationException. The default implementation of this method throws UnsupportedOperationException.

Parameters:
path     The path to the file
env     A map of provider specific properties to configure the file system; may be empty

Returns:  A new file system

Exceptions:
UnsupportedOperationException     If this provider does not support access to the contents as a file system or it does not recognize the file type of the given file
IllegalArgumentException     If the env parameter does not contain properties required by the provider, or a property value is invalid
IOException     If an I/O error occurs
SecurityException     If a security manager is installed and it denies an unspecified permission.