Top Description Constructors Methods
java.net.spi

public abstract Class URLStreamHandlerProvider

extends Object
implements URLStreamHandlerFactory
Class Inheritance
All Implemented Interfaces
java.net.URLStreamHandlerFactory
Imports
java.net.URLStreamHandlerFactory

URL stream handler service-provider class.

A URL stream handler provider is a concrete subclass of this class that has a zero-argument constructor. URL stream handler providers may be installed in an instance of the Java platform by adding them to the application class path.

A URL stream handler provider identifies itself with a provider-configuration file named java.net.spi.URLStreamHandlerProvider in the resource directory META-INF/services. The file should contain a list of fully-qualified concrete URL stream handler provider class names, one per line.

URL stream handler providers are located at runtime, as specified in the URL constructor.

Since
9

Constructor Summary

AccessConstructor and Description
private
protected
URLStreamHandlerProvider()

Initializes a new URL stream handler provider.

Method Summary

Modifier and TypeMethod and Description
private static Void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

URLStreamHandlerProviderback to summary
private URLStreamHandlerProvider(Void ignore)
URLStreamHandlerProviderback to summary
protected URLStreamHandlerProvider()

Initializes a new URL stream handler provider.

Exceptions
SecurityException:
If a security manager has been installed and it denies RuntimePermission("setFactory").

Method Detail

checkPermissionback to summary
private static Void checkPermission()