com.realtime.xmpp.dom
Class DomPacketLogger

java.lang.Object
  |
  +--com.realtime.xmpp.dom.DomPacketLogger
All Implemented Interfaces:
DomPacketListener

public class DomPacketLogger
extends java.lang.Object
implements DomPacketListener

Logs XMPP packets to an output stream. Useful for debugging.

Version:
1.0 Copyright © 2002 Real Time Entertainment Group, LLC - All rights reserved.
Author:
Mike Prince

Field Summary
protected  java.io.Writer m_out
          The stream to write packets to.
 
Constructor Summary
DomPacketLogger(java.io.Writer out)
          Create a logger that sends packets as XML to a stream.
 
Method Summary
 void incomingPacket(org.dom4j.Element packet)
          Signal a new packet has arrived.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_out

protected java.io.Writer m_out
The stream to write packets to.

Constructor Detail

DomPacketLogger

public DomPacketLogger(java.io.Writer out)

Create a logger that sends packets as XML to a stream.

Parameters:
out - The stream to write to.
Method Detail

incomingPacket

public void incomingPacket(org.dom4j.Element packet)
Signal a new packet has arrived.

Specified by:
incomingPacket in interface DomPacketListener
Parameters:
packet - The XMPP packet as a document.


Copyright © 2002,2003 Real Time Entertainment Group, LLC. All Rights Reserved.