Top Description Fields Constructors Methods
com.mysql.cj

public Class Messages

extends Object
Class Inheritance
Imports
java.text.MessageFormat, java.util.Locale, .MissingResourceException, .ResourceBundle

Support for localized messages.

Field Summary

Modifier and TypeField and Description
private static final String
private static final Object[]
private static final ResourceBundle

Constructor Summary

AccessConstructor and Description
private
Messages()

Dis-allow construction ...

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

The localized message for the key
getString
(String
the message key
key
)

Returns the localized message for the given message key

public static String
getString(String key, Object[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BUNDLE_NAMEback to summary
private static final String BUNDLE_NAME
emptyObjectArrayback to summary
private static final Object[] emptyObjectArray
RESOURCE_BUNDLEback to summary
private static final ResourceBundle RESOURCE_BUNDLE

Constructor Detail

Messagesback to summary
private Messages()

Dis-allow construction ...

Method Detail

getStringback to summary
public static String getString(String key)

Returns the localized message for the given message key

Parameters
key:String

the message key

Returns:String

The localized message for the key

getStringback to summary
public static String getString(String key, Object[] args)