rero.client.output
public class ChatCapabilities extends Feature
| Field Summary | |
|---|---|
| protected DataDCC | dccData |
| protected OutputCapabilities | output |
| protected SocketConnection | sock |
| Method Summary | |
|---|---|
| void | init() |
| void | sendAction(String target, String message) |
| void | sendMessage(String nickname, String message) |
| void | sendNotice(String target, String message) |
| void | sendReply(String target, String type, String parms) |
| void | sendRequest(String target, String type, String parms) |
| protected static String | wrapLine(String line, String newline, int wrapColumn)
Wraps a single line of text. |
| static String[] | wrapMessageToStringsArray(String message, int length) |
| static String | wrapText(String inString, String newline, int wrapColumn)
Takes a block of text which might have long lines in it and wraps the long lines based on the supplied wrapColumn
parameter. |
Parameters: line A line which is in need of word-wrapping. newline The characters that define a newline. wrapColumn The column to wrap the words at.
Returns: A line with newlines inserted.
Parameters: inString Text which is in need of word-wrapping. newline The characters that define a newline. wrapColumn The column to wrap the words at.
Returns: The text with all the long lines word-wrapped.