Package winstone
Class WinstoneResourceBundle
- java.lang.Object
-
- winstone.WinstoneResourceBundle
-
public class WinstoneResourceBundle extends Object
A ResourceBundle that includes the ability to do string replacement on the resources it retrieves.- Author:
- Rick Knowles
-
-
Constructor Summary
Constructors Constructor Description WinstoneResourceBundle(String baseName)
ConstructorWinstoneResourceBundle(String baseName, Locale loc)
WinstoneResourceBundle(String baseName, Locale loc, ClassLoader cl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getString(String key)
Default getString methodString
getString(String key, Object parameter)
Perform a string replace for a single from/to pair.String
getString(String key, Object[] parameters)
Perform a string replace for a set of from/to pairs.static String
globalReplace(String input, String[][] parameters)
static String
globalReplace(String input, String fromMarker, String toValue)
Just does a string swap, replacing occurrences of from with to.
-
-
-
Method Detail
-
getString
public String getString(String key, Object parameter)
Perform a string replace for a single from/to pair.
-
getString
public String getString(String key, Object[] parameters)
Perform a string replace for a set of from/to pairs.
-
globalReplace
public static String globalReplace(String input, String fromMarker, String toValue)
Just does a string swap, replacing occurrences of from with to.
-
-