public class EnhancedDebugger extends java.lang.Object implements SmackDebugger
A new EnhancedDebugger will be created for each connection to debug. All the EnhancedDebuggers will be shown in the same debug window provided by the class EnhancedDebuggerWindow.
| Constructor and Description |
|---|
EnhancedDebugger(XMPPConnection connection,
java.io.Writer writer,
java.io.Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
getReader()
Returns the special Reader that wraps the main Reader and logs data to the GUI.
|
PacketListener |
getReaderListener()
Returns the thread that will listen for all incoming packets and write them to the GUI.
|
java.io.Writer |
getWriter()
Returns the special Writer that wraps the main Writer and logs data to the GUI.
|
PacketListener |
getWriterListener()
Returns the thread that will listen for all outgoing packets and write them to the GUI.
|
java.io.Reader |
newConnectionReader(java.io.Reader newReader)
Returns a new special Reader that wraps the new connection Reader.
|
java.io.Writer |
newConnectionWriter(java.io.Writer newWriter)
Returns a new special Writer that wraps the new connection Writer.
|
void |
userHasLogged(java.lang.String user)
Called when a user has logged in to the server.
|
public EnhancedDebugger(XMPPConnection connection, java.io.Writer writer, java.io.Reader reader)
public java.io.Reader newConnectionReader(java.io.Reader newReader)
SmackDebuggernewConnectionReader in interface SmackDebuggerpublic java.io.Writer newConnectionWriter(java.io.Writer newWriter)
SmackDebuggernewConnectionWriter in interface SmackDebuggerpublic void userHasLogged(java.lang.String user)
SmackDebuggeruserHasLogged in interface SmackDebuggeruser - the user@host/resource that has just logged inpublic java.io.Reader getReader()
SmackDebuggergetReader in interface SmackDebuggerpublic java.io.Writer getWriter()
SmackDebuggergetWriter in interface SmackDebuggerpublic PacketListener getReaderListener()
SmackDebuggergetReaderListener in interface SmackDebuggerpublic PacketListener getWriterListener()
SmackDebuggergetWriterListener in interface SmackDebugger