|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.nio.channels.spi.SelectorProvider
public abstract class SelectorProvider
Constructor Summary | |
---|---|
protected |
SelectorProvider()
Initializes the selector provider. |
Method Summary | |
---|---|
Channel |
inheritedChannel()
Returns the inherited channel of the VM. |
abstract DatagramChannel |
openDatagramChannel()
Opens a datagram channel. |
abstract Pipe |
openPipe()
Opens a pipe. |
abstract AbstractSelector |
openSelector()
Opens a selector. |
abstract ServerSocketChannel |
openServerSocketChannel()
Opens a server socket channel. |
abstract SocketChannel |
openSocketChannel()
Opens a socket channel. |
static SelectorProvider |
provider()
Returns the system-wide default selector provider for this invocation of the Java virtual machine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SelectorProvider()
SecurityException
- If a security manager has been installed and
it denies @see RuntimePermission ("selectorProvider").Method Detail |
---|
public abstract DatagramChannel openDatagramChannel() throws IOException
IOException
- if an error occurspublic abstract Pipe openPipe() throws IOException
IOException
- if an error occurspublic abstract AbstractSelector openSelector() throws IOException
IOException
- if an error occurspublic abstract ServerSocketChannel openServerSocketChannel() throws IOException
IOException
- if an error occurspublic abstract SocketChannel openSocketChannel() throws IOException
IOException
- if an error occurspublic Channel inheritedChannel() throws IOException
IOException
- If an I/O error occurs
SecurityException
- If an installed security manager denies access
to RuntimePermission("inheritedChannel")public static SelectorProvider provider()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |