BraceStyleMessageParser

public abstract class BraceStyleMessageParser extends MessageParser

A specialized MessageParser for processing log messages in the "brace style", as used by MessageFormat. This is an abstract parser which knows how to process and extract place-holder terms at a high level, but does not impose its own semantics on formatting extensions (eg, "{0,number,#.##}").

Typically you should not subclass this class, but instead subclass DefaultBraceStyleMessageParser, which provides default behavior for simple place-holders.

Inheritors

Constructors

Link copied to clipboard

Inherited properties

Link copied to clipboard
public final static int MAX_ARG_COUNT
The maximum allowed index (this should correspond to the MAX_ALLOWED_WIDTH in FormatOptions because at times it is ambiguous as to which is being parsed).

Functions

Link copied to clipboard
protected final void parseImpl<T>(MessageBuilder<T> builder)
Abstract parse method implemented by specific subclasses to modify parsing behavior.
Link copied to clipboard
public final void unescape(StringBuilder out, String message, int start, int end)
Appends the unescaped literal representation of the given message string (assumed to be escaped according to this parser's escaping rules).