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 Details

    • WinstoneResourceBundle

      public WinstoneResourceBundle(String baseName)
      Constructor
    • WinstoneResourceBundle

      public WinstoneResourceBundle(String baseName, Locale loc)
    • WinstoneResourceBundle

      public WinstoneResourceBundle(String baseName, Locale loc, ClassLoader cl)
  • Method Details

    • 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)