org.apache.commons.net

Class PrintCommandListener

Implemented Interfaces:
ProtocolCommandListener

public class PrintCommandListener
extends java.lang.Object
implements ProtocolCommandListener

This is a support class for some of the example programs. It is a sample implementation of the ProtocolCommandListener interface which just prints out to a specified stream all command/reply traffic.

Since:
2.0

Constructor Summary

PrintCommandListener(PrintWriter writer)

Method Summary

void
protocolCommandSent(ProtocolCommandEvent event)
void
protocolReplyReceived(ProtocolCommandEvent event)

Constructor Details

PrintCommandListener

public PrintCommandListener(PrintWriter writer)

Method Details

protocolCommandSent

public void protocolCommandSent(ProtocolCommandEvent event)

protocolReplyReceived

public void protocolReplyReceived(ProtocolCommandEvent event)