jnr.enxio.channels
Class NativeSelectorProvider

java.lang.Object
  extended by java.nio.channels.spi.SelectorProvider
      extended by jnr.enxio.channels.NativeSelectorProvider

public final class NativeSelectorProvider
extends SelectorProvider


Constructor Summary
NativeSelectorProvider()
           
 
Method Summary
static SelectorProvider getInstance()
           
 DatagramChannel openDatagramChannel()
           
 DatagramChannel openDatagramChannel(ProtocolFamily family)
           
 Pipe openPipe()
           
 AbstractSelector openSelector()
           
 ServerSocketChannel openServerSocketChannel()
           
 SocketChannel openSocketChannel()
           
 
Methods inherited from class java.nio.channels.spi.SelectorProvider
inheritedChannel, provider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeSelectorProvider

public NativeSelectorProvider()
Method Detail

getInstance

public static final SelectorProvider getInstance()

openDatagramChannel

public DatagramChannel openDatagramChannel()
                                    throws IOException
Specified by:
openDatagramChannel in class SelectorProvider
Throws:
IOException

openDatagramChannel

public DatagramChannel openDatagramChannel(ProtocolFamily family)
                                    throws IOException
Throws:
IOException

openPipe

public Pipe openPipe()
              throws IOException
Specified by:
openPipe in class SelectorProvider
Throws:
IOException

openSelector

public AbstractSelector openSelector()
                              throws IOException
Specified by:
openSelector in class SelectorProvider
Throws:
IOException

openServerSocketChannel

public ServerSocketChannel openServerSocketChannel()
                                            throws IOException
Specified by:
openServerSocketChannel in class SelectorProvider
Throws:
IOException

openSocketChannel

public SocketChannel openSocketChannel()
                                throws IOException
Specified by:
openSocketChannel in class SelectorProvider
Throws:
IOException


Copyright © 2013. All Rights Reserved.