Class NioServer.Adapter

java.lang.Object
  extended by NioServer.Adapter
All Implemented Interfaces:
java.util.EventListener, NioServer.Listener
Enclosing class:
NioServer

public static class NioServer.Adapter
extends java.lang.Object
implements NioServer.Listener

A helper class that implements all methods of the NioServer.Listener interface with empty methods.

This code is released into the Public Domain. Since this is Public Domain, you don't need to worry about licensing, and you can simply copy this NioServer.java file to your own package and use it as you like. Enjoy. Please consider leaving the following statement here in this code:

This NioServer class was copied to this project from its source as found at iHarder.net.

Author:
Robert Harder, rharder@users.sourceforge.net
See Also:
NioServer, NioServer.Listener, NioServer.Event

Constructor Summary
NioServer.Adapter()
           
 
Method Summary
 void connectionClosed(NioServer.Event evt)
          Empty method.
 void newConnectionReceived(NioServer.Event evt)
          Empty method.
 void tcpDataReceived(NioServer.Event evt)
          Empty method.
 void tcpReadyToWrite(NioServer.Event evt)
          Empty method.
 void udpDataReceived(NioServer.Event evt)
          Empty method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioServer.Adapter

public NioServer.Adapter()
Method Detail

tcpDataReceived

public void tcpDataReceived(NioServer.Event evt)
Empty method.

Specified by:
tcpDataReceived in interface NioServer.Listener
Parameters:
evt - the shared event
See Also:
NioServer.Listener

udpDataReceived

public void udpDataReceived(NioServer.Event evt)
Empty method.

Specified by:
udpDataReceived in interface NioServer.Listener
Parameters:
evt - the shared event
See Also:
NioServer.Listener

newConnectionReceived

public void newConnectionReceived(NioServer.Event evt)
Empty method.

Specified by:
newConnectionReceived in interface NioServer.Listener
Parameters:
evt - the shared event
See Also:
NioServer.Listener

connectionClosed

public void connectionClosed(NioServer.Event evt)
Empty method.

Specified by:
connectionClosed in interface NioServer.Listener
Parameters:
evt - the shared event
See Also:
NioServer.Listener

tcpReadyToWrite

public void tcpReadyToWrite(NioServer.Event evt)
Empty method.

Specified by:
tcpReadyToWrite in interface NioServer.Listener
Parameters:
evt - the shared event
See Also:
NioServer.Listener