|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vwp.util.MessagePipe
public class MessagePipe
A base class for message transfers; this class should be overridden using own pipe...()-methods and could be used e.g. to transfer information from a separate thread to the main program
| Constructor Summary | |
|---|---|
MessagePipe()
The default constructor |
|
| Method Summary | |
|---|---|
void |
pipeChatMessage(String nick,
String msg)
This method should be overridden by own ones to use it as transfer interface |
void |
pipeDownloadTick()
This method should be overridden by own ones to use it for download progress information. |
void |
pipeErrorCode(int errcode)
This method should be overridden by own ones to use it as transfer interface |
void |
pipeErrorMessage(String errmsg)
This method should be overridden by own ones to use it as transfer interface |
void |
pipeMessage(String msg)
This method should be overridden by own ones to use it as transfer interface |
void |
pipeMiscData(int type,
Object data)
This method should be overridden by own ones to use it as transfer interface. |
void |
pipeRename(String oldname,
String newname)
This method should be overridden by own ones to use it as transfer interface |
void |
pipeTransmissionData(long msecs,
long bytes)
This method should be overridden by own ones to use it as transfer interface. |
void |
pipeWhisperedMessage(String nick,
String msg)
This method should be overridden by own ones to use it as transfer interface |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessagePipe()
| Method Detail |
|---|
public void pipeMessage(String msg)
msg - the string which has to be transferred
public void pipeChatMessage(String nick,
String msg)
nick - the name of the user which has sent this chat textmsg - the string which has to be transferred
public void pipeWhisperedMessage(String nick,
String msg)
nick - the name of the user which has sent this whispered chat textmsg - the string which has to be transferred
public void pipeRename(String oldname,
String newname)
oldname - the old name which has to be renamednewname - the name to what it has to be renamedpublic void pipeErrorMessage(String errmsg)
errmsg - the errorstring which has to be transferredpublic void pipeErrorCode(int errcode)
errcode - the error code which has to be transferred
public void pipeTransmissionData(long msecs,
long bytes)
msecs - the time the transmission lastedbytes - the number of bytes which have been transferred during this
time
public void pipeMiscData(int type,
Object data)
type - specifies what kind of data is transfered and describes the
exact type of the "data" parameterdata - the transfered object itselfpublic void pipeDownloadTick()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||