public final class DOMMessageFormatter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DOM_DOMAIN |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatMessage(String domain,
String key,
Object[] arguments)
Formats a message with the specified arguments.
|
static void |
init()
Initialize Message Formatter.
|
public static final String DOM_DOMAIN
public static String formatMessage(String domain, String key, Object[] arguments) throws MissingResourceException
domain - domain from which error string is to come.key - The message key.arguments - The message replacement text arguments. The order of the
arguments must match that of the placeholders in the actual
message.MissingResourceException - Thrown if the message with the specified key
cannot be found.public static void init()
Copyright © 2024 HtmlUnit. All rights reserved.