# URLStreamHandlerFactory

public interface **URLStreamHandlerFactory** This interface defines a factory for `URL` stream
protocol handlers.


It is used by the `URL` class to create a
`URLStreamHandler` for a specific protocol.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URL.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URLStreamHandler.html`

### Public Method Summary

|---|---|
| abstract [URLStreamHandler](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URLStreamHandler.html) | [createURLStreamHandler](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URLStreamHandlerFactory.html#createURLStreamHandler(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) protocol) Creates a new `URLStreamHandler` instance with the specified protocol. |

## Public Methods

#### public abstract [URLStreamHandler](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URLStreamHandler.html)
**createURLStreamHandler**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) protocol)

Creates a new `URLStreamHandler` instance with the specified
protocol.

##### Parameters

| protocol | the protocol ("`ftp`", "`http`", "`nntp`", etc.). |
|---|---|

##### Returns

- a `URLStreamHandler` for the specific protocol.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URLStreamHandler.html`