|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Localizer
The localizer is a convenience class which joins the features of a resource bundle with the features of a message formatter.
| Method Summary | |
|---|---|
java.lang.String |
format(java.lang.String key)
Getter for the value of a format string associated to a given key. |
java.lang.String |
format(java.lang.String fmt,
java.lang.Object a)
Apply the given argument to the format string stored in the resource bundle under the given key. |
java.lang.String |
format(java.lang.String fmt,
java.lang.Object[] a)
Apply the given argument to the format string stored in the resource bundle under the given key. |
java.lang.String |
format(java.lang.String fmt,
java.lang.Object a,
java.lang.Object b)
Apply the given argument to the format string stored in the resource bundle under the given key. |
java.lang.String |
format(java.lang.String fmt,
java.lang.Object a,
java.lang.Object b,
java.lang.Object c)
Apply the given argument to the format string stored in the resource bundle under the given key. |
java.lang.String |
format(java.lang.String fmt,
java.lang.Object a,
java.lang.Object b,
java.lang.Object c,
java.lang.Object d)
Apply the given argument to the format string stored in the resource bundle under the given key. |
java.lang.String |
format(java.lang.String fmt,
java.lang.Object a,
java.lang.Object b,
java.lang.Object c,
java.lang.Object d,
java.lang.Object e)
Apply the given argument to the format string stored in the resource bundle under the given key. |
java.lang.String |
getFormat(java.lang.String key)
Getter for the value of a format string associated to a given key. |
void |
message(java.io.PrintStream writer,
java.lang.String fmt)
Get the value of a format string associated to a given key in the resource bundle and print it to the given writer. |
void |
message(java.io.PrintStream writer,
java.lang.String fmt,
java.lang.Object a)
Apply the given argument to the format string stored in the resource bundle under the given key and print the result to a writer. |
void |
message(java.io.PrintStream writer,
java.lang.String fmt,
java.lang.Object a,
java.lang.Object b)
Apply the given argument to the format string stored in the resource bundle under the given key and print the result to a writer. |
void |
message(java.io.PrintStream writer,
java.lang.String fmt,
java.lang.Object a,
java.lang.Object b,
java.lang.Object c)
Apply the given argument to the format string stored in the resource bundle under the given key and print the result to a writer. |
| Method Detail |
|---|
java.lang.String format(java.lang.String key)
key - the key in the resource bundle to search for
java.lang.String format(java.lang.String fmt,
java.lang.Object a)
fmt - the key in the resource bundle to search fora - the Object used for the sub-string {0}
java.lang.String format(java.lang.String fmt,
java.lang.Object a,
java.lang.Object b)
fmt - the key in the resource bundle to search fora - the Object used for the sub-string {0}b - the Object used for the sub-string {1}
java.lang.String format(java.lang.String fmt,
java.lang.Object a,
java.lang.Object b,
java.lang.Object c)
fmt - the key in the resource bundle to search fora - the Object used for the sub-string {0}b - the Object used for the sub-string {1}c - the Object used for the sub-string {2}
java.lang.String format(java.lang.String fmt,
java.lang.Object a,
java.lang.Object b,
java.lang.Object c,
java.lang.Object d)
fmt - the key in the resource bundle to search fora - the Object used for the sub-string {0}b - the Object used for the sub-string {1}c - the Object used for the sub-string {2}d - the Object used for the sub-string {3}
java.lang.String format(java.lang.String fmt,
java.lang.Object a,
java.lang.Object b,
java.lang.Object c,
java.lang.Object d,
java.lang.Object e)
fmt - the key in the resource bundle to search fora - the Object used for the sub-string {0}b - the Object used for the sub-string {1}c - the Object used for the sub-string {2}d - the Object used for the sub-string {3}e - the Object used for the sub-string {4}
java.lang.String format(java.lang.String fmt,
java.lang.Object[] a)
fmt - the key in the resource bundle to search fora - the Object used for the substrings {n}
java.lang.String getFormat(java.lang.String key)
key - the key in the resource bundle to search for
null
void message(java.io.PrintStream writer,
java.lang.String fmt)
writer - the target output writerfmt - the key in the resource bundle to search for
void message(java.io.PrintStream writer,
java.lang.String fmt,
java.lang.Object a)
writer - the target output writerfmt - the key in the resource bundle to search fora - the Object used for the substring {0}
void message(java.io.PrintStream writer,
java.lang.String fmt,
java.lang.Object a,
java.lang.Object b)
writer - the target output writerfmt - the key in the resource bundle to search fora - the Object used for the substring {0}b - the Object used for the substring {1}
void message(java.io.PrintStream writer,
java.lang.String fmt,
java.lang.Object a,
java.lang.Object b,
java.lang.Object c)
writer - the target output writerfmt - the key in the resource bundle to search fora - the Object used for the sub-string {0}b - the Object used for the sub-string {1}c - the Object used for the sub-string {2}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||