public class Parser
extends java.lang.Object
Buffer
instance.Constructor and Description |
---|
Parser(@NotNull java.awt.Color selectionColor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
parse(@NotNull java.lang.CharSequence text,
int type,
int subtype,
@NotNull java.awt.Color defaultColor,
@NotNull Buffer buffer)
Parses a text message.
|
void |
parseWithoutMediaTags(@NotNull java.lang.CharSequence text,
int type,
int subtype,
@NotNull java.awt.Color color,
@NotNull Buffer buffer)
Parses a plain text message without media tags.
|
static @NotNull java.lang.String |
toString(@NotNull java.awt.Color color)
Returns the string representation for a color.
|
public Parser(@NotNull @NotNull java.awt.Color selectionColor)
selectionColor
- the selection colorpublic void parse(@NotNull @NotNull java.lang.CharSequence text, int type, int subtype, @NotNull @NotNull java.awt.Color defaultColor, @NotNull @NotNull Buffer buffer)
text
- the text message to parsetype
- the message typesubtype
- the message subtypedefaultColor
- the default color to usebuffer
- the buffer to updatepublic void parseWithoutMediaTags(@NotNull @NotNull java.lang.CharSequence text, int type, int subtype, @NotNull @NotNull java.awt.Color color, @NotNull @NotNull Buffer buffer)
text
- the text message to parsetype
- the message typesubtype
- the message subtypecolor
- the color to usebuffer
- the buffer to update@NotNull public static @NotNull java.lang.String toString(@NotNull @NotNull java.awt.Color color)
color
- the color to convert