APIdia Launch Partner
Top Description Methods
com.sun.tools.javac.api

public Interface Messages

Known Direct Implementers
com.sun.tools.javac.util.JavacMessages
Imports
java.util.Locale, .MissingResourceException

This interface defines the minimum requirements in order to provide support for localized formatted strings.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Author
Maurizio Cimadamore

Method Summary

Modifier and TypeMethod and Description
public void
add(String
the name to identify the resource bundle of localized messages.
bundleName
)

Add a new resource bundle to the list that is searched for localized messages.

public String

Returns:

a localized formatted string
getLocalizedString
(Locale
locale in which the text is to be localized
l
,
String
locale-independent message key
key
,
Object...
misc message arguments
args
)

Get a localized formatted string.

Method Detail

addback to summary
public void add(String bundleName) throws MissingResourceException

Add a new resource bundle to the list that is searched for localized messages.

Parameters
bundleName:String

the name to identify the resource bundle of localized messages.

Exceptions
MissingResourceException:
if the given resource is not found
getLocalizedStringback to summary
public String getLocalizedString(Locale l, String key, Object... args)

Get a localized formatted string.

Parameters
l:Locale

locale in which the text is to be localized

key:String

locale-independent message key

args:Object[]

misc message arguments

Returns:String

a localized formatted string