public default <S> ServiceLoader<S> getServiceLoader (Location location, Class<S> service) throws IOException

Get a service loader for a specific service class from a given location. If the location is a module-oriented location, the service loader will use the service declarations in the modules found in that location. Otherwise, a service loader is created using the package-oriented location, in which case, the services are determined using the provider-configuration files in META-INF/services.

Parameters:
location    the module-oriented location
service    the Class object of the service class
<S>    the service class

Returns:  a service loader for the given service class

Exceptions:
IOException    if an I/O error occurred
UnsupportedOperationException    if this operation if not supported by this file manager

Since:  9

@implSpec This implementation throws UnsupportedOperationException.
@spec JPMS