parse

public static FormatOptions parse(String message, int pos, int end, boolean isUpperCase)

Parses a sub-sequence of a log message to extract and return its options. Note that callers cannot rely on this method producing new instances each time it is called as caching of common option values may occur.

Return

the parsed options instance.

Parameters

message

the original log message in which the formatting options have been identified.

pos

the index of the first character to parse.

end

the index after the last character to be parsed.

Throws

if the specified sub-sequence of the string could not be parsed.