|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttranslator.StaticExtendedResourceBundle
public class StaticExtendedResourceBundle
A special type of PropertyResourceBundle support
| Field Summary | |
|---|---|
static java.lang.String |
ASCII_FORMAT
the default file format |
(package private) java.util.PropertyResourceBundle |
bundle
The property resource bundle used for storing the current resources |
static java.lang.String |
PROPERTY_FORMAT
the default name for the property format |
| Constructor Summary | |
|---|---|
StaticExtendedResourceBundle(java.lang.String filename)
Generate a new bundle from the given name and language code |
|
StaticExtendedResourceBundle(java.lang.String filename,
java.lang.String formatName)
Generate a new bundle from the given name and language code |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getKeys()
Retrieve the keys of this resource |
java.lang.String |
getMessage(java.lang.String key)
Convenvience wrapper for retrieving the message for key 'key' Internally invokes getMessage(key, true) |
java.lang.String |
getMessage(java.lang.String key,
boolean warnOnError)
Method for retrieving the message for key 'key' |
void |
printProperties()
Print the properties stored in the bundle to System.out |
void |
printProperties(java.io.PrintStream outputStream)
Print the properties stored in the bundle to the given output stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_FORMAT
public static final java.lang.String ASCII_FORMAT
java.util.PropertyResourceBundle bundle
| Constructor Detail |
|---|
public StaticExtendedResourceBundle(java.lang.String filename)
filename - the file name
public StaticExtendedResourceBundle(java.lang.String filename,
java.lang.String formatName)
filename - the file nameformatName - the name of the format file| Method Detail |
|---|
public java.lang.String[] getKeys()
public java.lang.String getMessage(java.lang.String key)
key - the key of the message to retrieve
getMessage(String, boolean)
public java.lang.String getMessage(java.lang.String key,
boolean warnOnError)
key - the key of the message to retrievewarnOnError - if true, display a warning on System.out if
no appropriate resource was found.
public void printProperties()
public void printProperties(java.io.PrintStream outputStream)
outputStream - the OutputStream on which the results
are to be written
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||