Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.util.StringSplitter Class Reference

Utility class for splitting strings. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.util.StringSplitter:

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...
 

Detailed Description

Utility class for splitting strings.

Author
Andreas Kirschbaum

Definition at line 32 of file StringSplitter.java.

Constructor & Destructor Documentation

◆ StringSplitter()

com.realtime.crossfire.jxclient.util.StringSplitter.StringSplitter ( )
private

Private constructor to prevent instantiation.

Definition at line 47 of file StringSplitter.java.

Member Function Documentation

◆ split()

static Iterable<String> com.realtime.crossfire.jxclient.util.StringSplitter.split ( @NotNull final String  message)
staticprivate

Splits the given string into lines.

Parameters
messagethe message to split
Returns
the lines

Definition at line 74 of file StringSplitter.java.

Referenced by com.realtime.crossfire.jxclient.util.StringSplitter.splitAsHtml().

+ Here is the caller graph for this function:

◆ splitAsHtml()

static String com.realtime.crossfire.jxclient.util.StringSplitter.splitAsHtml ( @NotNull final String  message)
static

Splits the given string into lines and returns the lines separated by "&lt;br&gt;".

Parameters
messagethe message to format
Returns
the formatted message

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ MAXIMUM_LINE_LENGTH

final int com.realtime.crossfire.jxclient.util.StringSplitter.MAXIMUM_LINE_LENGTH = 80
staticprivate

The maximum line length in characters.

Definition at line 42 of file StringSplitter.java.

◆ PREFERRED_LINE_LENGTH

final int com.realtime.crossfire.jxclient.util.StringSplitter.PREFERRED_LINE_LENGTH = 50
staticprivate

The preferred line length in characters.

Definition at line 37 of file StringSplitter.java.


The documentation for this class was generated from the following file: