Package java.nio
Class SelectorProviderImpl
- java.lang.Object
-
- java.nio.channels.spi.SelectorProvider
-
- java.nio.SelectorProviderImpl
-
public final class SelectorProviderImpl extends SelectorProvider
-
-
Constructor Summary
Constructors Constructor Description SelectorProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatagramChannelopenDatagramChannel()Creates a new openDatagramChannel.PipeopenPipe()Creates a newPipe.AbstractSelectoropenSelector()Creates a new selector.ServerSocketChannelopenServerSocketChannel()Creates a new openServerSocketChannel.SocketChannelopenSocketChannel()Create a new openSocketChannel.-
Methods inherited from class java.nio.channels.spi.SelectorProvider
inheritedChannel, provider
-
-
-
-
Method Detail
-
openDatagramChannel
public DatagramChannel openDatagramChannel() throws IOException
Description copied from class:SelectorProviderCreates a new openDatagramChannel.- Specified by:
openDatagramChannelin classSelectorProvider- Returns:
- the new channel.
- Throws:
IOException- if an I/O error occurs.
-
openPipe
public Pipe openPipe() throws IOException
Description copied from class:SelectorProviderCreates a newPipe.- Specified by:
openPipein classSelectorProvider- Returns:
- the new pipe.
- Throws:
IOException- if an I/O error occurs.
-
openSelector
public AbstractSelector openSelector() throws IOException
Description copied from class:SelectorProviderCreates a new selector.- Specified by:
openSelectorin classSelectorProvider- Returns:
- the new selector.
- Throws:
IOException- if an I/O error occurs.
-
openServerSocketChannel
public ServerSocketChannel openServerSocketChannel() throws IOException
Description copied from class:SelectorProviderCreates a new openServerSocketChannel.- Specified by:
openServerSocketChannelin classSelectorProvider- Returns:
- the new channel.
- Throws:
IOException- if an I/O error occurs.
-
openSocketChannel
public SocketChannel openSocketChannel() throws IOException
Description copied from class:SelectorProviderCreate a new openSocketChannel.- Specified by:
openSocketChannelin classSelectorProvider- Returns:
- the new channel.
- Throws:
IOException- if an I/O error occurs.
-
-