Package org.apache.commons.vfs2.util
Class Messages
java.lang.Object
org.apache.commons.vfs2.util.Messages
Formats messages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ConcurrentMap<String, MessageFormat> Map from message code to MessageFormat object for the message.private static final ResourceBundle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static MessageFormatfindMessage(String code) Locates a message by its code.static StringFormats a message.static StringDeprecated.static StringFormats a message.
-
Field Details
-
messageMap
Map from message code to MessageFormat object for the message. -
RESOURCES
-
-
Constructor Details
-
Messages
private Messages()
-
-
Method Details
-
findMessage
Locates a message by its code.- Throws:
MissingResourceException
-
getString
Formats a message.- Parameters:
code- The message code.- Returns:
- The formatted message.
-
getString
Deprecated.Will be removed in 3.0 in favor ofgetString(String, Object[])When removed, calls to this method will automatically recompile togetString(String, Object[])Formats a message.- Parameters:
code- The message code.param- The message parameter.- Returns:
- The formatted message.
-
getString
Formats a message.- Parameters:
code- The message code.params- The message parameters.- Returns:
- The formatted message.
-
getString(String, Object[])When removed, calls to this method will automatically recompile togetString(String, Object[])