|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibble.pircbot.DccChat
public class DccChat
This class is used to allow the bot to interact with a DCC Chat session.
Method Summary | |
---|---|
void |
accept()
Accept this DccChat connection. |
void |
close()
Closes the DCC Chat connection. |
java.io.BufferedReader |
getBufferedReader()
Returns the BufferedReader used by this DCC Chat. |
java.io.BufferedWriter |
getBufferedWriter()
Returns the BufferedReader used by this DCC Chat. |
java.lang.String |
getHostname()
Returns the hostname of the DCC Chat initiator. |
java.lang.String |
getLogin()
Returns the login of the DCC Chat initiator. |
java.lang.String |
getNick()
Returns the nick of the other user taking part in this file transfer. |
long |
getNumericalAddress()
Returns the address of the sender as a long. |
java.net.Socket |
getSocket()
Returns the raw Socket used by this DCC Chat. |
java.lang.String |
readLine()
Reads the next line of text from the client at the other end of our DCC Chat connection. |
void |
sendLine(java.lang.String line)
Sends a line of text to the client at the other end of our DCC Chat connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void accept() throws java.io.IOException
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public void sendLine(java.lang.String line) throws java.io.IOException
line
- The line of text to be sent. This should not include
linefeed characters.
java.io.IOException
- If an I/O error occurs.public void close() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public java.lang.String getNick()
public java.lang.String getLogin()
public java.lang.String getHostname()
public java.io.BufferedReader getBufferedReader()
public java.io.BufferedWriter getBufferedWriter()
public java.net.Socket getSocket()
public long getNumericalAddress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |