public default String inferModuleName (Location location) throws IOException

Infer the name of the module from its location, as returned by getLocationForModule or listModuleLocations.

Parameters:
location    a package-oriented location representing a module

Returns:  the name of the module

Exceptions:
IOException    if an I/O error occurred
UnsupportedOperationException    if this operation if not supported by this file manager
IllegalArgumentException    if the location is not one known to this file manager

Since:  9

@implSpec This implementation throws UnsupportedOperationException.
@spec JPMS