Package java.net
Interface URLStreamHandlerFactory
-
public interface URLStreamHandlerFactoryThis interface defines a factory forURLstream protocol handlers.It is used by the
URLclass to create aURLStreamHandlerfor a specific protocol.- Since:
- JDK1.0
- See Also:
URL,URLStreamHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URLStreamHandlercreateURLStreamHandler(String protocol)Creates a newURLStreamHandlerinstance with the specified protocol.
-
-
-
Method Detail
-
createURLStreamHandler
@Nullable URLStreamHandler createURLStreamHandler(String protocol)
Creates a newURLStreamHandlerinstance with the specified protocol.- Parameters:
protocol- the protocol ("ftp", "http", "nntp", etc.).- Returns:
- a
URLStreamHandlerfor the specific protocol. - See Also:
URLStreamHandler
-
-