org.jboss.xnio.nio
Class NioTcpServer.NioTcpServerChannel

java.lang.Object
  extended by org.jboss.xnio.nio.NioTcpServer.NioTcpServerChannel
All Implemented Interfaces:
java.io.Closeable, java.nio.channels.Channel, BoundChannel<java.net.SocketAddress>
Enclosing class:
NioTcpServer

public final class NioTcpServer.NioTcpServerChannel
extends java.lang.Object
implements BoundChannel<java.net.SocketAddress>


Constructor Summary
NioTcpServer.NioTcpServerChannel(java.nio.channels.ServerSocketChannel channel)
           
 
Method Summary
 void close()
           
 java.net.SocketAddress getLocalAddress()
          Get the local address that this channel is bound to.
 boolean isOpen()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NioTcpServer.NioTcpServerChannel

public NioTcpServer.NioTcpServerChannel(java.nio.channels.ServerSocketChannel channel)
                                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getLocalAddress

public java.net.SocketAddress getLocalAddress()
Description copied from interface: BoundChannel
Get the local address that this channel is bound to.

Specified by:
getLocalAddress in interface BoundChannel<java.net.SocketAddress>
Returns:
the local address

isOpen

public boolean isOpen()
Specified by:
isOpen in interface java.nio.channels.Channel

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.nio.channels.Channel
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object