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 MessageFormat
findMessage
(String code) Locates a message by its code.static String
Formats a message.static String
Deprecated.static String
Formats 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[])