1 22 23 package org.enhydra.kelp.common; 24 25 import java.text.MessageFormat ; 26 import org.enhydra.tool.common.PathHandle; 27 28 public class ResUtil { 29 30 public static String format(String message, String arg) { 31 String [] args = new String [1]; 32 args[0] = arg; 33 return MessageFormat.format(message, args); 34 } 35 36 public static String format(String message, PathHandle path) { 37 return ResUtil.format(message, path.getPath()); 38 } 39 40 } | Popular Tags |