Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.nio.channels
Class ServerSocketChannel  view ServerSocketChannel download ServerSocketChannel.java

java.lang.Object
  extended byjava.nio.channels.spi.AbstractInterruptibleChannel
      extended byjava.nio.channels.SelectableChannel
          extended byjava.nio.channels.spi.AbstractSelectableChannel
              extended byjava.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:
validOps in class SelectableChannel