1 18 package org.apache.batik.ext.awt.image.codec; 19 20 import java.util.MissingResourceException ; 21 22 import org.apache.batik.i18n.LocalizableSupport; 23 24 public class PropertyUtil { 25 protected final static String RESOURCES = 26 "org.apache.batik.bridge.resources.properties"; 27 28 29 protected static LocalizableSupport localizableSupport = 30 new LocalizableSupport 31 (RESOURCES, PropertyUtil.class.getClassLoader()); 32 33 public static String getString(String key) { 34 try{ 35 return localizableSupport.formatMessage(key, null); 36 }catch(MissingResourceException e){ 37 return key; 38 } 39 } 40 } 41 | Popular Tags |