APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.tools.jdeprscan

public Class Messages

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

Message handling class for localization.

Field Summary

Modifier and TypeField and Description
pack-priv static final ResourceBundle
bundle

The resource bundle, must be non-null.

pack-priv static final boolean
REPLACE_LINESEP

Indicates whether line separators in messages need replacement.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
get(String
the message key
key
,
Object...
the message arguments
args
)

Gets a message from the resource bundle.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bundleback to summary
pack-priv static final ResourceBundle bundle

The resource bundle, must be non-null.

REPLACE_LINESEPback to summary
pack-priv static final boolean REPLACE_LINESEP

Indicates whether line separators in messages need replacement.

Constructor Detail

Messagesback to summary
public Messages()

Method Detail

getback to summary
public static String get(String key, Object... args)

Gets a message from the resource bundle. If necessary, translates "\n", the line break string used in the message file, to the system-specific line break string.

Parameters
key:String

the message key

args:Object[]

the message arguments