org.apache.commons.net

Class PrintCommandListener

public class PrintCommandListener extends 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
voidprotocolCommandSent(ProtocolCommandEvent event)
voidprotocolReplyReceived(ProtocolCommandEvent event)

Constructor Detail

PrintCommandListener

public PrintCommandListener(PrintWriter writer)

Method Detail

protocolCommandSent

public void protocolCommandSent(ProtocolCommandEvent event)

protocolReplyReceived

public void protocolReplyReceived(ProtocolCommandEvent event)