|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcmdline.Strings
public class Strings
A helper class used to obtain Strings for this package. Strings are retrieved from the ResourceBundle in "jcmdline.strings" which may be localized as necessary.
ResourceBundle
Constructor Summary | |
---|---|
Strings()
|
Method Summary | |
---|---|
static java.lang.String |
get(java.lang.String key)
Gets a String. |
static java.lang.String |
get(java.lang.String key,
java.lang.Object[] params)
Gets a String, filling in the supplied parameters. |
static java.lang.String |
join(java.lang.String separator,
java.lang.Object[] objs)
Join the toString() representations of the specified objects, separating them with the specified separator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Strings()
Method Detail |
---|
public static java.lang.String get(java.lang.String key)
key
- the key with which to look up the String in the ResourceBundle
key
. Should
key
not exist in the ResourceBundle a String
consisting of the key is returned.ResourceBundle
public static java.lang.String get(java.lang.String key, java.lang.Object[] params)
key
- the key with which to look up the String in the ResourceBundleparams
- parameters to be plugged into the String
key
, with the supplied
params
plugged in as described for
java.text.MessageFormat
. Should key
not
exist in the ResourceBundle a String containing the key and a
list of the parameters is returned.MessageFormat
,
ResourceBundle
public static java.lang.String join(java.lang.String separator, java.lang.Object[] objs)
separator
- the String to be inserted between the toString()
representations of the Objectsobjs
- the objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |