Top Inners Constructors Methods
jnr.enxio.channels

public final Class NativeFileSelectorProvider

extends SelectorProvider
Class Inheritance
Imports
jnr.ffi.Platform, java.io.IOException, java.nio.channels.DatagramChannel, .Pipe, .ServerSocketChannel, .SocketChannel, java.nio.channels.spi.AbstractSelector, .SelectorProvider

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static final SelectorProvider
public DatagramChannel
public DatagramChannel
openDatagramChannel(ProtocolFamily
The protocol family
family
)

Implements abstract java.nio.channels.spi.SelectorProvider.openDatagramChannel.

Opens a datagram channel.
public Pipe
openPipe()

Implements abstract java.nio.channels.spi.SelectorProvider.openPipe.

Opens a pipe.
public AbstractSelector
openSelector()

Implements abstract java.nio.channels.spi.SelectorProvider.openSelector.

Opens a selector.
public ServerSocketChannel
public SocketChannel
Inherited from java.nio.channels.spi.SelectorProvider:
inheritedChannelopenServerSocketChannelopenSocketChannelprovider

Constructor Detail

NativeFileSelectorProviderback to summary
public NativeFileSelectorProvider()

Method Detail

getInstanceback to summary
public static final SelectorProvider getInstance()
openDatagramChannelback to summary
public DatagramChannel openDatagramChannel() throws IOException

Implements abstract java.nio.channels.spi.SelectorProvider.openDatagramChannel.

Doc from java.nio.channels.spi.SelectorProvider.openDatagramChannel.

Opens a datagram channel.

Returns:DatagramChannel

The new channel

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
openDatagramChannelback to summary
public DatagramChannel openDatagramChannel(ProtocolFamily family) throws IOException

Implements abstract java.nio.channels.spi.SelectorProvider.openDatagramChannel.

Doc from java.nio.channels.spi.SelectorProvider.openDatagramChannel.

Opens a datagram channel.

Parameters
family:ProtocolFamily

The protocol family

Returns:DatagramChannel

A new datagram channel

Exceptions
IOException:
If an I/O error occurs
openPipeback to summary
public Pipe openPipe() throws IOException

Implements abstract java.nio.channels.spi.SelectorProvider.openPipe.

Doc from java.nio.channels.spi.SelectorProvider.openPipe.

Opens a pipe.

Returns:Pipe

The new pipe

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
openSelectorback to summary
public AbstractSelector openSelector() throws IOException

Implements abstract java.nio.channels.spi.SelectorProvider.openSelector.

Doc from java.nio.channels.spi.SelectorProvider.openSelector.

Opens a selector.

Returns:AbstractSelector

The new selector

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
openServerSocketChannelback to summary
public ServerSocketChannel openServerSocketChannel() throws IOException

Implements abstract java.nio.channels.spi.SelectorProvider.openServerSocketChannel.

Doc from java.nio.channels.spi.SelectorProvider.openServerSocketChannel.

Opens a server-socket channel.

Returns:ServerSocketChannel

The new channel

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
openSocketChannelback to summary
public SocketChannel openSocketChannel() throws IOException

Implements abstract java.nio.channels.spi.SelectorProvider.openSocketChannel.

Doc from java.nio.channels.spi.SelectorProvider.openSocketChannel.

Opens a socket channel.

Returns:SocketChannel

The new channel

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
jnr.enxio.channels back to summary

private final Class NativeFileSelectorProvider.SingletonHolder

extends Object
Class Inheritance
  • java.lang.Object
  • jnr.enxio.channels.NativeFileSelectorProvider.SingletonHolder

Field Summary

Modifier and TypeField and Description
pack-priv static NativeFileSelectorProvider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static NativeFileSelectorProvider INSTANCE

Constructor Detail

SingletonHolderback to summary
private SingletonHolder()