|
|||||||||
| Home >> All >> java >> nio >> [ channels overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.nio.channels
Class ServerSocketChannel

java.lang.Objectjava.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.ServerSocketChannel
- All Implemented Interfaces:
- Channel, InterruptibleChannel
- public abstract class ServerSocketChannel
- extends java.nio.channels.spi.AbstractSelectableChannel
- Since:
- 1.4
| Field Summary |
| Fields inherited from class java.nio.channels.spi.AbstractSelectableChannel |
|
| Fields inherited from class java.nio.channels.spi.AbstractInterruptibleChannel |
|
| Constructor Summary | |
protected |
ServerSocketChannel(java.nio.channels.spi.SelectorProvider provider)
Initializes this channel. |
| Method Summary | |
abstract SocketChannel |
accept()
Accepts a connection made to this channel's socket. |
static ServerSocketChannel |
open()
Opens a server socket channel. |
abstract java.net.ServerSocket |
socket()
Retrieves the channels socket. |
int |
validOps()
Retrieves the valid operations for this channel. |
| Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel |
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, register |
| Methods inherited from class java.nio.channels.SelectableChannel |
register |
| Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel |
begin, close, end, isOpen |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
ServerSocketChannel
protected ServerSocketChannel(java.nio.channels.spi.SelectorProvider provider)
- Initializes this channel.
| Method Detail |
accept
public abstract SocketChannel accept() throws java.io.IOException
- Accepts a connection made to this channel's socket.
socket
public abstract java.net.ServerSocket socket()
- Retrieves the channels socket.
open
public static ServerSocketChannel open() throws java.io.IOException
- Opens a server socket channel.
validOps
public final int validOps()
- Retrieves the valid operations for this channel.
- Specified by:
validOpsin classSelectableChannel
|
|||||||||
| Home >> All >> java >> nio >> [ channels overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC