public final class EventFormatter
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
EventFormatter.LookupFieldPartFactory |
PartFactory for lookups.
|
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
format(Event event) |
Formats an event using the default locale.
|
static java.lang.String |
format(Event event,
java.lang.String pattern) |
Formats the event using a given pattern.
|
static java.lang.String |
format(Event event,
java.util.Locale locale) |
Formats an event using a given locale.
|
public static java.lang.String format(Event event)
event
- the eventpublic static java.lang.String format(Event event, java.util.Locale locale)
event
- the eventlocale
- the localepublic static java.lang.String format(Event event, java.lang.String pattern)
AdvancedMessageFormat
.event
- the eventpattern
- the pattern (compatible with AdvancedMessageFormat
)Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.