public class Chat extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Marker |
INPUT_CHAT_MARKER |
static org.slf4j.Marker |
OUTPUT_CHAT_MARKER |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the DCC Chat connection.
|
BufferedReader |
getBufferedReader() |
BufferedWriter |
getBufferedWriter() |
Socket |
getSocket() |
User |
getUser() |
boolean |
isFinished() |
String |
readLine()
Reads the next line of text from the client at the other end of our DCC
Chat connection.
|
void |
sendLine(String line)
Sends a line of text to the client at the other end of our DCC Chat
connection.
|
public static final org.slf4j.Marker INPUT_CHAT_MARKER
public static final org.slf4j.Marker OUTPUT_CHAT_MARKER
public String readLine() throws IOException
IOException
- If an I/O error occurs.public void sendLine(String line) throws IOException
line
- The line of text to be sent. This should not include linefeed
characters.IOException
- If an I/O error occurs.public void close() throws IOException
IOException
- If an I/O error occurs.@Generated(value="lombok") public User getUser()
@Generated(value="lombok") public BufferedReader getBufferedReader()
@Generated(value="lombok") public BufferedWriter getBufferedWriter()
@Generated(value="lombok") public Socket getSocket()
@Generated(value="lombok") public boolean isFinished()
Copyright © 2010–2020 Leon Blakey. All rights reserved.