public final class FormatMarker
extends java.lang.Object
FormatMarker
class provides facilities to identify markers within a format string.
Currently, the following markers are supported: %b, %d, %x and %s.Modifier and Type | Field and Description |
---|---|
static FormatMarker |
BIN
Token for %b.
|
static FormatMarker |
DEC
Token for %d.
|
static FormatMarker |
HEX
Token for %x.
|
static FormatMarker |
STR
Token for %s.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<FormatMarker> |
extractMarkers(java.lang.String format)
Gets the list of format tokens for the specified format string.
|
java.lang.String |
getRegExpr()
Gets the regular expression describing the given marker type.
|
java.lang.String |
getTokenId()
Returns the token identifier for the given marker type.
|
public static final FormatMarker DEC
public static final FormatMarker BIN
public static final FormatMarker HEX
public static final FormatMarker STR
public java.lang.String getTokenId()
public java.lang.String getRegExpr()
public static java.util.List<FormatMarker> extractMarkers(java.lang.String format)
format
- Format string to be parsed.java.lang.IllegalArgumentException
- if the parameter is null
.