Package winstone

Class 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 Detail

      • WinstoneResourceBundle

        public WinstoneResourceBundle​(String baseName)
        Constructor
      • WinstoneResourceBundle

        public WinstoneResourceBundle​(String baseName,
                                      Locale loc)
    • Method Detail

      • getString

        public String getString​(String key)
        Default getString method
      • 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.
      • globalReplace

        public static String globalReplace​(String input,
                                           String[][] parameters)