Crossfire JXClient, Trunk
R20561
|
Utility class for splitting strings. More...
Static Public Member Functions | |
static String | splitAsHtml (@NotNull final String message) |
Splits the given string into lines and returns the lines separated by "<br>". More... | |
Private Member Functions | |
StringSplitter () | |
Private constructor to prevent instantiation. More... | |
Static Private Member Functions | |
static Iterable< String > | split (@NotNull final String message) |
Splits the given string into lines. More... | |
Static Private Attributes | |
static final int | MAXIMUM_LINE_LENGTH = 80 |
The maximum line length in characters. More... | |
static final int | PREFERRED_LINE_LENGTH = 50 |
The preferred line length in characters. More... | |
Utility class for splitting strings.
Definition at line 32 of file StringSplitter.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 47 of file StringSplitter.java.
|
staticprivate |
Splits the given string into lines.
message | the message to split |
Definition at line 74 of file StringSplitter.java.
Referenced by com.realtime.crossfire.jxclient.util.StringSplitter.splitAsHtml().
|
static |
Splits the given string into lines and returns the lines separated by "<br>".
message | the message to format |
Definition at line 57 of file StringSplitter.java.
References com.realtime.crossfire.jxclient.util.StringSplitter.split().
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), and com.realtime.crossfire.jxclient.util.StringSplitterTest.testSplit().
|
staticprivate |
The maximum line length in characters.
Definition at line 42 of file StringSplitter.java.
|
staticprivate |
The preferred line length in characters.
Definition at line 37 of file StringSplitter.java.