| java.lang.Object | |
| ↳ | java.nio.channels.spi.SelectorProvider |
SelectorProvider is an abstract base class that declares methods for providing instances of DatagramChannel, Pipe, Selector , ServerSocketChannel, and SocketChannel. All the methods of this class are thread-safe.
A provider instance can be retrieved through a system property or the configuration file in a jar file; if no provider is available that way then the system default provider is returned.
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Constructs a new
SelectorProvider.
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Returns the channel inherited from the process that created this VM.
|
||||||||||
|
|
Creates a new open
DatagramChannel.
|
||||||||||
|
|
Creates a new
Pipe.
|
||||||||||
|
|
Creates a new selector.
|
||||||||||
|
|
Creates a new open
ServerSocketChannel.
|
||||||||||
|
|
Create a new open
SocketChannel.
|
||||||||||
|
|
Gets a provider instance by executing the following steps when called for the first time:
|
||||||||||
| [Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
|||||||||||
Returns the channel inherited from the process that created this VM. On Android, this method always returns null because stdin and stdout are never connected to a socket.
| IOException | if an I/O error occurs. |
|---|
Creates a new open DatagramChannel.
| IOException | if an I/O error occurs. |
|---|
Creates a new open ServerSocketChannel.
| IOException | if an I/O error occurs. |
|---|
Create a new open SocketChannel.
| IOException | if an I/O error occurs. |
|---|
Gets a provider instance by executing the following steps when called for the first time: