Package org.apache.tapestry.util.text

Examples of org.apache.tapestry.util.text.LocalizedPropertiesLoader


  //
  // IPropertiesAccessor
  //
  ////////////////////////////////////////////////////////////////////////////
  public Map<String, String> load(InputStream is, String charset) throws Exception {
    LocalizedPropertiesLoader loader = new LocalizedPropertiesLoader(is, "UTF-8");
    Map<String, String> map = new HashMap<String, String>();
    loader.load(map);
    return map;
  }
View Full Code Here


        String propFile = baseName + search.getAsString() + ".properties";
        InputStream stream =
            ResourceLocatorImpl.tryFindResourceAsStream(logger, resourceOracle, propFile);
        if (stream != null) {
          try {
            LocalizedPropertiesLoader loader = new LocalizedPropertiesLoader(stream, "UTF-8");
            map = new HashMap<String, String>();
            loader.load(map);
            break;
          } catch (IOException e) {
            logger.log(TreeLogger.WARN, "Ignoring error reading file " + propFile, e);
          } finally {
            try {
View Full Code Here

      for (GwtLocale search : locale.getCompleteSearchList()) {
        String propFile = baseName + search.getAsString() + ".properties";
        InputStream stream = cl.getResourceAsStream(propFile);
        if (stream != null) {
          try {
            LocalizedPropertiesLoader loader = new LocalizedPropertiesLoader(stream, "UTF-8");
            map = new HashMap<String, String>();
            loader.load(map);
            break;
          } catch (IOException e) {
            logger.log(TreeLogger.WARN, "Ignoring error reading file " + propFile, e);
          } finally {
            try {
View Full Code Here

TOP

Related Classes of org.apache.tapestry.util.text.LocalizedPropertiesLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.