ebgeo.maprequest
Class StringUtils

java.lang.Object
  extended byebgeo.maprequest.StringUtils

public class StringUtils
extends Object

Various String utility methods.


Method Summary
static String formatStringForDateTime(String input, Locale locale)
          Format a string searching for special character combinations, and replacing them with appropriately formatted date/time symbols for a specified locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatStringForDateTime

public static String formatStringForDateTime(String input,
                                             Locale locale)
Format a string searching for special character combinations, and replacing them with appropriately formatted date/time symbols for a specified locale. This method works in a similar way to strftime() under Un*x systems. Recognised symbols:
SymbolReplace with
%YCurrent year with century as a decimal number
%%%

Parameters:
input - The input string containing the special character combinations.
locale - The locale to use when formatting date/time symbols.
Returns:
Returns the input string with the special character combinations replaced by formatted date/time symbols.