public abstract class AbstractDebugger extends java.lang.Object implements SmackDebugger
Modifier and Type | Field and Description |
---|---|
static boolean |
printInterpreted |
Constructor and Description |
---|
AbstractDebugger(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.
|
StanzaListener |
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.
|
StanzaListener |
getWriterListener()
Returns the thread that will listen for all outgoing packets and write them to the GUI.
|
protected abstract void |
log(java.lang.String logMessage) |
protected abstract void |
log(java.lang.String logMessage,
java.lang.Throwable throwable) |
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(EntityFullJid user)
Called when a user has logged in to the server.
|
public static boolean printInterpreted
public AbstractDebugger(XMPPConnection connection, java.io.Writer writer, java.io.Reader reader)
protected abstract void log(java.lang.String logMessage)
protected abstract void log(java.lang.String logMessage, java.lang.Throwable throwable)
public java.io.Reader newConnectionReader(java.io.Reader newReader)
SmackDebugger
newConnectionReader
in interface SmackDebugger
newReader
- connection reader.public java.io.Writer newConnectionWriter(java.io.Writer newWriter)
SmackDebugger
newConnectionWriter
in interface SmackDebugger
newWriter
- connection writer.public void userHasLogged(EntityFullJid user)
SmackDebugger
userHasLogged
in interface SmackDebugger
user
- the user@host/resource that has just logged inpublic java.io.Reader getReader()
SmackDebugger
getReader
in interface SmackDebugger
public java.io.Writer getWriter()
SmackDebugger
getWriter
in interface SmackDebugger
public StanzaListener getReaderListener()
SmackDebugger
getReaderListener
in interface SmackDebugger
public StanzaListener getWriterListener()
SmackDebugger
getWriterListener
in interface SmackDebugger