Class Parser
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.log.Parser
-
public class Parser extends java.lang.ObjectParser for parsing drawextinfo messages received from a Crossfire server to update aBufferinstance.
-
-
Constructor Summary
Constructors Constructor Description Parser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse(@NotNull java.lang.CharSequence text, @Nullable java.awt.Color defaultColor, @NotNull Buffer buffer)Parses a text message.voidparseWithoutMediaTags(@NotNull java.lang.CharSequence text, @NotNull java.awt.Color color, @NotNull Buffer buffer)Parses a plain text message without media tags.static @NotNull java.lang.StringtoString(@NotNull java.awt.Color color)Returns the string representation for a color.
-
-
-
Method Detail
-
parse
public void parse(@NotNull @NotNull java.lang.CharSequence text, @Nullable @Nullable java.awt.Color defaultColor, @NotNull @NotNull Buffer buffer)Parses a text message.- Parameters:
text- the text message to parsedefaultColor- the default color to usebuffer- the buffer to update
-
parseWithoutMediaTags
public void parseWithoutMediaTags(@NotNull @NotNull java.lang.CharSequence text, @NotNull @NotNull java.awt.Color color, @NotNull @NotNull Buffer buffer)Parses a plain text message without media tags.- Parameters:
text- the text message to parsecolor- the color to usebuffer- the buffer to update
-
toString
@NotNull public static @NotNull java.lang.String toString(@NotNull @NotNull java.awt.Color color)Returns the string representation for a color.- Parameters:
color- the color to convert- Returns:
- the string representation
-
-