URLStreamHandler (Java Platform SE 8 ) (original) (raw)

public abstract class URLStreamHandler
extends Object
The abstract class URLStreamHandler is the common superclass for all stream protocol handlers. A stream protocol handler knows how to make a connection for a particular protocol type, such as http or https.
In most cases, an instance of a URLStreamHandler subclass is not created directly by an application. Rather, the first time a protocol name is encountered when constructing aURL, the appropriate stream protocol handler is automatically loaded.
Since:
JDK1.0
See Also:
URL.URL(java.lang.String, java.lang.String, int, java.lang.String)

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.